Héberger de nouveaux fichiers .jar et configurer le paramètres de test.

This commit is contained in:
2025-10-24 17:24:01 -07:00
parent 2de7bb80f5
commit 84731b1a70

View File

@@ -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 {