-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (30 loc) · 975 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
plugins {
id("fabric-loom")
kotlin("jvm")
}
dependencies {
minecraft("com.mojang:minecraft:${properties["minecraft"]}")
mappings("net.fabricmc:yarn:${properties["yarn"]}:v2")
modImplementation("net.fabricmc:fabric-loader:${properties["loader"]}")
modImplementation("net.fabricmc.fabric-api:fabric-api:${properties["fabric_api"]}")
modImplementation("net.fabricmc:fabric-language-kotlin:${properties["fabric_kotlin"]}")
}
tasks.named<Copy>("processResources") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from(sourceSets["main"].resources.srcDirs) {
include("fabric.mod.json")
expand(project.properties)
}
from(sourceSets["main"].resources.srcDirs) {
exclude("fabric.mod.json")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
tasks.withType<Jar> {
from("LICENSE")
}