-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
35 lines (28 loc) · 938 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
import net.fabricmc.loom.api.LoomGradleExtensionAPI
plugins {
id("fabric-loom") version "1.9-SNAPSHOT"
}
repositories {
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
mavenCentral()
}
loom {
accessWidenerPath.set(project.file("src/main/resources/mcutils.accesswidener"))
}
dependencies {
"minecraft"("com.mojang:minecraft:1.21.4")
"mappings"(project.the<LoomGradleExtensionAPI>().officialMojangMappings())
"modImplementation"("net.fabricmc:fabric-loader:0.16.9")
"implementation"("com.squareup:javapoet:1.13.0")
val autoServiceVersion = "1.0.1"
"compileOnly"("com.google.auto.service:auto-service-annotations:$autoServiceVersion")
"annotationProcessor"("com.google.auto.service:auto-service:$autoServiceVersion")
}
plugins.withId("java") {
the<JavaPluginExtension>().toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}