mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 23:47:50 +00:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
plugins {
|
|
application
|
|
}
|
|
|
|
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.CLI.nbt)
|
|
|
|
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("ch.qos.logback", "logback-classic", Versions.CLI.logback)
|
|
|
|
|
|
}
|
|
|
|
tasks.withType<Jar> {
|
|
entryCompression = ZipEntryCompression.STORED
|
|
manifest {
|
|
attributes(
|
|
"Main-Class" to javaMainClass,
|
|
)
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
doFirst {
|
|
options.compilerArgs.add("-Aproject=${project.group}/${project.name}")
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set(javaMainClass)
|
|
}
|
|
|
|
tasks.getByName("run").setProperty("workingDir", file("./run"))
|
|
|
|
addonDir(project.file("./run/addons"), tasks.named("run").get())
|