mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-11-25 16:52:07 +01:00
No longer build fat jars, but rely on gradle application instead
This commit is contained in:
parent
85b49233e1
commit
d50df99946
2 changed files with 5 additions and 31 deletions
|
@ -35,20 +35,6 @@ test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
mainClassName = 'pgp.wkd.cli.WKDCLI'
|
mainClass = '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"
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -32,21 +32,9 @@ dependencies {
|
||||||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1'
|
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1'
|
||||||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
|
||||||
}
|
}
|
||||||
mainClassName = 'pgp.wkd.test_suite.Main'
|
|
||||||
|
|
||||||
jar {
|
application {
|
||||||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
mainClass = 'pgp.wkd.test_suite.Main'
|
||||||
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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
|
Loading…
Reference in a new issue