migrate to gradle part 5

This commit is contained in:
afischerdev 2021-08-18 13:03:54 +02:00
parent 14d5a2c4e6
commit 90bb1b0079
11 changed files with 280 additions and 37 deletions

View file

@ -1,34 +1,8 @@
plugins {
id 'application'
id 'java-library'
}
application {
// Gradles 'application' plugin requires one main class; since we have multiple ones, just specify
// one of them, since the applications won't be run from gradle anyways.
mainClass.set('btools.mapcreator.PosUnifier')
jar {
manifest {
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
}
}
task fatJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
}
dependencies {
implementation project(':brouter-codec')
implementation project(':brouter-util')