mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 00:15:35 +00:00
39 lines
939 B
Plaintext
39 lines
939 B
Plaintext
plugins {
|
|
application
|
|
}
|
|
|
|
repositories {
|
|
maven { url = uri("https://jitpack.io/") }
|
|
}
|
|
|
|
val javaMainClass = "com.dfsek.terra.cli.TerraCLI"
|
|
|
|
dependencies {
|
|
shadedApi("commons-io:commons-io:${Versions.CLI.commonsIO}")
|
|
shadedApi("com.github.Querz:NBT:${Versions.CLI.nbt}")
|
|
shadedApi(project(":common:implementation:base"))
|
|
|
|
shadedImplementation("com.google.guava:guava:31.0.1-jre")
|
|
|
|
shadedImplementation("ch.qos.logback:logback-classic:${Versions.CLI.logback}")
|
|
|
|
implementation("net.jafama", "jafama", Versions.Libraries.Internal.jafama)
|
|
}
|
|
|
|
tasks.withType<Jar> {
|
|
entryCompression = ZipEntryCompression.STORED
|
|
manifest {
|
|
attributes(
|
|
"Main-Class" to javaMainClass,
|
|
)
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set(javaMainClass)
|
|
}
|
|
|
|
tasks.getByName("run").setProperty("workingDir", file("./run"))
|
|
|
|
addonDir(project.file("./run/addons"), tasks.named("run").get())
|