Use Gradle !
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package be.simplenotes
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
tasks.withType<ShadowJar> {
|
||||
|
||||
archiveBaseName.set("app")
|
||||
manifest.attributes["Main-Class"] = "be.simplenotes.app.SimpleNotesKt"
|
||||
|
||||
mergeServiceFiles()
|
||||
|
||||
// minimize()
|
||||
|
||||
// include("org.mariadb.jdbc:mariadb-java-client")
|
||||
// include("com.h2database:h2")
|
||||
// include("org.jetbrains.kotlin:kotlin-reflect")
|
||||
// include("org.eclipse.jetty:*")
|
||||
// include("org.apache.lucene:*")
|
||||
// include("org.ocpsoft.prettytime:prettytime")
|
||||
|
||||
File(rootProject.projectDir, "buildSrc/src/main/resources/exclusions")
|
||||
.listFiles()!!
|
||||
.flatMap {
|
||||
it.readLines()
|
||||
.asSequence()
|
||||
.map { it.trim() }
|
||||
.filterNot { it.isBlank() }
|
||||
.filterNot { it.startsWith("#") }
|
||||
.asIterable()
|
||||
}.forEach { exclude(it) }
|
||||
|
||||
}
|
||||
|
||||
tasks.create("package") {
|
||||
rootProject.subprojects.forEach { dependsOn(":${it.name}:test") }
|
||||
|
||||
dependsOn("shadowJar")
|
||||
dependsOn("css")
|
||||
|
||||
doLast {
|
||||
println("SimpleNotes Packaged !")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user