-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.gradle
51 lines (45 loc) · 2.21 KB
/
build.gradle
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
import com.ishland.c2me.gradle.ModpackConfig
evaluationDependsOn(":tests")
sourceSets {
testmod {
compileClasspath += main.compileClasspath
runtimeClasspath += main.runtimeClasspath
}
}
loom {
runs {
devlaunchC2MEModpackServer {
server()
runDir getRootProject().getProjectDir().toPath().relativize(project.getProjectDir().toPath()).resolve("run-${project.minecraft_version}-server").toString()
source sourceSets.testmod
vmArgs "-Dcom.ishland.c2me.common.config.threadedWorldGen.reduceLockRadius=true",
"-Dcom.ishland.c2me.common.config.threadedWorldGen.useGlobalBiomeCache=true",
"-Dcom.ishland.c2me.common.config.asyncScheduling.enabled=true",
"-Dcom.ishland.c2me.common.config.noTickViewDistance.enabled=true",
"-Dcom.ishland.c2me.common.config.threadedWorldGen.enabled=true",
"--add-modules jdk.incubator.vector"
}
devlaunchC2MEModpackClient {
client()
runDir getRootProject().getProjectDir().toPath().relativize(project.getProjectDir().toPath()).resolve("run-${project.minecraft_version}").toString()
source sourceSets.testmod
vmArgs "-Dcom.ishland.c2me.common.config.threadedWorldGen.reduceLockRadius=true",
"-Dcom.ishland.c2me.common.config.threadedWorldGen.enabled=true",
"-Dcom.ishland.c2me.common.config.threadedWorldGen.useGlobalBiomeCache=true",
"-Dcom.ishland.c2me.common.config.asyncScheduling.enabled=true",
"-Dcom.ishland.c2me.common.config.noTickViewDistance.enabled=true",
"--add-modules jdk.incubator.vector"
}
}
}
migrateMappings.onlyIf { false }
dependencies {
testmodImplementation project(":").sourceSets.main.output
testmodImplementation project(":").configurations.getByName("includeApi").allDependencies
testmodImplementation project(":").configurations.getByName("shadowImpl").allDependencies
testmodImplementation project(":").configurations.getByName("shadowRuntime").allDependencies
ModpackConfig.applyModpack(it)
}
test {
useJUnitPlatform()
}