-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (37 loc) · 1.26 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
43
44
45
46
47
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.10"
kotlin("plugin.serialization") version "1.8.10"
id("fabric-loom") version "1.1-SNAPSHOT"
id("io.github.juuxel.loom-quiltflower") version "1.8.0"
id("org.quiltmc.quilt-mappings-on-loom") version "4.2.3"
}
group = "net.stckoverflw"
version = "0.1.0"
repositories {
mavenCentral()
}
dependencies {
minecraft("com.mojang", "minecraft", "1.19.4")
mappings(loom.layered {
quiltMappings.mappings("org.quiltmc:quilt-mappings:1.19.4+build.7:v2")
officialMojangMappings()
})
modImplementation("net.fabricmc", "fabric-loader", "0.14.18")
modImplementation("net.fabricmc.fabric-api", "fabric-api", "0.76.0+1.19.4")
modImplementation("net.silkmc", "silk-core", "1.9.7")
modImplementation("net.silkmc", "silk-commands", "1.9.7")
modImplementation("net.fabricmc", "fabric-language-kotlin", "1.9.2+kotlin.1.8.10")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile> {
targetCompatibility = JavaVersion.VERSION_18.toString()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "18"
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers" + "-Xskip-prerelease-check"
}
}