Use Gradle !

This commit is contained in:
2020-10-26 01:27:35 +01:00
parent e64352f54c
commit 4fb85a52e4
36 changed files with 707 additions and 961 deletions
@@ -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 !")
}
}