forked from EssentialGG/UniversalCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (33 loc) · 923 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import gg.essential.gradle.util.*
plugins {
kotlin("jvm")
id("gg.essential.multi-version")
id("gg.essential.defaults")
id("gg.essential.defaults.maven-publish")
}
group = "gg.essential"
java.withSourcesJar()
tasks.compileKotlin.setJvmDefault(if (platform.mcVersion >= 11400) "all" else "all-compatibility")
loom.noServerRunConfigs()
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21")
}
tasks.jar {
manifest {
attributes(mapOf("FMLModType" to "LIBRARY"))
}
}
version = "DIAMOND-1"
publishing {
repositories {
maven {
name = "diamond"
url = uri("https://maven.dediamondpro.dev/releases")
credentials {
username = System.getenv("MAVEN_DIAMOND_USER")
password = System.getenv("MAVEN_DIAMOND_PASSWORD")
}
version = project.version
}
}
}