-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
42 lines (33 loc) · 1.02 KB
/
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
plugins {
kotlin("jvm") version "1.9.0"
id("fabric-loom") version "1.3-SNAPSHOT"
}
version = "1.6.2"
group = "pl.vemu"
base.archivesName = "diamold"
dependencies {
minecraft("com.mojang:minecraft:1.20")
mappings("net.fabricmc:yarn:1.20+build.1:v2")
modImplementation("net.fabricmc:fabric-loader:0.14.22")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.83.0+1.20")
modImplementation("net.fabricmc:fabric-language-kotlin:1.10.8+kotlin.1.9.0")
}
tasks {
val javaVersion = JavaVersion.VERSION_17
processResources {
filesMatching("fabric.mod.json") { expand("version" to version) }
}
withType<JavaCompile> {
options.release = 17
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = javaVersion.toString()
}
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
jar { from("LICENSE") { rename { "${it}_${base.archivesName.get()}" } } }
}