Inceptum/launcher-dist/build.gradle.kts

40 lines
1007 B
Plaintext
Raw Normal View History

2022-09-06 11:15:21 +02:00
plugins {
id("inceptum.application-standalone-conventions")
}
application {
mainClass.set("io.gitlab.jfronny.inceptum.Inceptum")
}
dependencies {
implementation(project(":launcher"))
implementation(project(":launcher-cli"))
implementation(project(":launcher-imgui"))
}
tasks.shadowJar {
archiveClassifier.set(rootProject.extra["flavorProp"] as String)
archiveBaseName.set("Inceptum")
exclude("about.html")
exclude("plugin.properties")
exclude("META-INF/**")
}
publishing {
publications {
if (rootProject.hasProperty("dist.platformOnly")) {
create<MavenPublication>("shadowed") {
artifact(tasks.shadowJar) {
builtBy(tasks.shadowJar)
artifactId = "Inceptum"
}
}
} else {
create<MavenPublication>("mavenJava") {
artifact(tasks.jar) {
builtBy(tasks.jar)
}
}
}
}
}