mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-01 15:37:24 +00:00
29 lines
676 B
Plaintext
29 lines
676 B
Plaintext
plugins {
|
|
application
|
|
}
|
|
|
|
val javaMainClass = "com.dfsek.terra.minestom.TerraMinestomExample"
|
|
|
|
dependencies {
|
|
shadedApi(project(":platforms:minestom"))
|
|
|
|
implementation("net.minestom", "minestom-snapshots", Versions.Minestom.minestom)
|
|
implementation("org.slf4j", "slf4j-simple", Versions.Libraries.slf4j)
|
|
}
|
|
|
|
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/terra/addons"), tasks.named("run").get())
|