diff --git a/wkd-java-cli/build.gradle b/wkd-java-cli/build.gradle index 219adf2..fa1aaba 100644 --- a/wkd-java-cli/build.gradle +++ b/wkd-java-cli/build.gradle @@ -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" - } -} \ No newline at end of file +application { + mainClass = 'pgp.wkd.cli.WKDCLI' +} diff --git a/wkd-test-suite/build.gradle b/wkd-test-suite/build.gradle index 9f835b1..fb48726 100644 --- a/wkd-test-suite/build.gradle +++ b/wkd-test-suite/build.gradle @@ -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 {