No longer build fat jars, but rely on gradle application instead

This commit is contained in:
Paul Schaub 2022-03-13 16:23:18 +01:00
parent 85b49233e1
commit d50df99946
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 5 additions and 31 deletions

View file

@ -35,20 +35,6 @@ test {
useJUnitPlatform()
}
mainClassName = 'pgp.wkd.cli.WKDCLI'
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
attributes 'Main-Class': "$mainClassName"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
application {
mainClass = 'pgp.wkd.cli.WKDCLI'
}

View file

@ -32,21 +32,9 @@ dependencies {
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
}
mainClassName = 'pgp.wkd.test_suite.Main'
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
attributes 'Main-Class': "$mainClassName"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
application {
mainClass = 'pgp.wkd.test_suite.Main'
}
test {