diff --git a/build.gradle b/build.gradle index c953d0c..917e9f7 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,12 @@ repositories { dependencies { implementation 'info.picocli:picocli:4.7.6' implementation 'net.java.dev.jna:jna-platform:5.17.0' + + testImplementation platform('org.junit:junit-bom:5.10.0') + testImplementation ('org.junit.jupiter:junit-jupiter') + testImplementation ('org.bouncycastle:bcprov-jdk18on:1.82') + testImplementation ( 'org.bouncycastle:bcpkix-jdk18on:1.82') + testImplementation ( 'org.bouncycastle:bcutil-jdk18on:1.82') } jar.enabled = false @@ -37,14 +43,26 @@ tasks.register('EncryptEPub', Jar) { from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } - duplicatesStrategy = DuplicatesStrategy.INCLUDE // Or INCLUDE, EXCLUDE, WARN, INHERIT + duplicatesStrategy = DuplicatesStrategy.EXCLUDE // Or INCLUDE, EXCLUDE, WARN, INHERIT } -jar.enabled = false // instead build serverJar, fullJar, i18neditorJar +tasks.register('AdeptActivateCli', Jar ) { + archiveFileName = 'AdeptActivateCli.jar' + manifest { + attributes( 'Main-Class' : 'AdeptActivateCli') + } + from {sourceSets.main.output.classesDirs} + dependsOn configurations.runtimeClasspath + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } + duplicatesStrategy = DuplicatesStrategy.EXCLUDE // Or INCLUDE, EXCLUDE, WARN, INHERIT +} +jar.enabled = false artifacts { - archives EncryptEPub + archives EncryptEPub, AdeptActivateCli } test {