-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (49 loc) · 1.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import net.blueberrymc.blueberryfarm.blueberry
plugins {
java
id("net.blueberrymc.blueberryfarm") version("2.0.0-SNAPSHOT") // https://github.com/BlueberryMC/BlueberryFarm
}
group = "net.blueberrymc.example"
version = "0.0.1"
tasks.withType<JavaExec>().configureEach {
javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
blueberry {
minecraftVersion.set("1.19.3")
apiVersion.set("1.7.0-SNAPSHOT")
}
repositories {
// mavenLocal()
mavenCentral()
maven { url = uri("https://repo.blueberrymc.net/repository/maven-public/") }
}
dependencies {
blueberry()
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
}
tasks {
withType<net.blueberrymc.blueberryfarm.tasks.RunClient> {
this.addArgs("--mixin mixins.examplemod.json")
}
withType<net.blueberrymc.blueberryfarm.tasks.RunServer> {
this.addArgs("--mixin mixins.examplemod.json")
}
compileJava {
options.encoding = "UTF-8"
}
jar {
manifest.attributes(
"TweakClass" to "org.spongepowered.asm.launch.MixinTweaker",
"MixinConfigs" to "mixins.examplemod.json",
)
}
test {
useJUnitPlatform()
}
}