migrate to gradle part 5
This commit is contained in:
parent
14d5a2c4e6
commit
90bb1b0079
11 changed files with 280 additions and 37 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue