-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (42 loc) · 1.01 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
import net.blueberrymc.blueberryfarm.blueberry
plugins {
java
id("net.blueberrymc.blueberryfarm") version("2.3.0") // 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.20.2")
apiVersion.set("2.0.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")
}
/*
configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}
*/
tasks {
compileJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
}
}