mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
33 lines
740 B
Plaintext
33 lines
740 B
Plaintext
plugins {
|
|
application
|
|
}
|
|
|
|
val javaMainClass = "com.dfsek.terra.minestom.TerraMinestomExample"
|
|
|
|
dependencies {
|
|
shadedApi(project(":platforms:minestom"))
|
|
|
|
implementation("net.minestom", "minestom", Versions.Minestom.minestom)
|
|
implementation("org.slf4j", "slf4j-simple", Versions.Libraries.slf4j)
|
|
}
|
|
|
|
tasks.withType<Jar> {
|
|
entryCompression = ZipEntryCompression.STORED
|
|
manifest {
|
|
attributes(
|
|
"Main-Class" to javaMainClass,
|
|
)
|
|
}
|
|
}
|
|
|
|
tasks.withType<JavaCompile>().configureEach {
|
|
options.release = 25
|
|
}
|
|
|
|
application {
|
|
mainClass.set(javaMainClass)
|
|
}
|
|
|
|
tasks.getByName("run").setProperty("workingDir", file("./run"))
|
|
addonDir(project.file("./run/terra/addons"), tasks.named("run").get())
|