mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-11-29 01:13:58 +00:00
feat: build improvements
This commit is contained in:
1 parent
b8f94a67ef
commit
407aaf203e
32 files changed
+378
-356
No files matched your search
@@ -7,15 +7,15 @@ val javaMainClass = "com.dfsek.terra.cli.TerraCLI"
|
||||
dependencies {
|
||||
shadedApi(project(":common:implementation:base"))
|
||||
|
||||
shadedApi("commons-io", "commons-io", Versions.Libraries.Internal.apacheIO)
|
||||
shadedApi("com.github.Querz", "NBT", Versions.Libraries.Internal.nbt)
|
||||
shadedApi("commons-io:commons-io:${Versions.Libraries.Internal.apacheIO}")
|
||||
shadedApi("com.github.Querz:NBT:${Versions.Libraries.Internal.nbt}")
|
||||
|
||||
shadedImplementation("info.picocli", "picocli", Versions.CLI.picocli)
|
||||
annotationProcessor("info.picocli", "picocli-codegen", Versions.CLI.picocli)
|
||||
shadedImplementation("info.picocli:picocli:${Versions.CLI.picocli}")
|
||||
annotationProcessor("info.picocli:picocli-codegen:${Versions.CLI.picocli}")
|
||||
|
||||
shadedImplementation("com.google.guava", "guava", Versions.Libraries.Internal.guava)
|
||||
shadedImplementation("com.google.guava:guava:${Versions.Libraries.Internal.guava}")
|
||||
|
||||
shadedImplementation("ch.qos.logback", "logback-classic", Versions.CLI.logback)
|
||||
shadedImplementation("ch.qos.logback:logback-classic:${Versions.CLI.logback}")
|
||||
|
||||
// Addon class loaders find minecraft-attributes on the test class path first; its entrypoint needs the manifest addon API.
|
||||
testImplementation(project(":common:addons:minecraft-attributes"))
|
||||
@@ -32,9 +32,7 @@ tasks.withType<Jar> {
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
doFirst {
|
||||
options.compilerArgs.add("-Aproject=${project.group}/${project.name}")
|
||||
}
|
||||
options.compilerArgs.add("-Aproject=${project.group}/${project.name}")
|
||||
}
|
||||
|
||||
application {
|
||||
@@ -43,9 +41,10 @@ application {
|
||||
|
||||
tasks.getByName("run").setProperty("workingDir", file("./run"))
|
||||
|
||||
// CLIPlatform uses "./" as its data folder.
|
||||
// CLIPlatform uses "./" as its data folder. Terra initializes once per JVM, and each test class starts its own platform.
|
||||
tasks.withType<Test> {
|
||||
workingDir = file("./run").also { it.mkdirs() }
|
||||
forkEvery = 1
|
||||
}
|
||||
|
||||
tasks.withType<Test> { dependsOn("moveAddonsrun") }
|
||||
|
||||
Reference in new issue
Block a user