Héberger de nouveaux fichiers .jar et configurer le paramètres de test.
This commit is contained in:
24
build.gradle
24
build.gradle
@@ -12,6 +12,12 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation 'info.picocli:picocli:4.7.6'
|
implementation 'info.picocli:picocli:4.7.6'
|
||||||
implementation 'net.java.dev.jna:jna-platform:5.17.0'
|
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
|
jar.enabled = false
|
||||||
@@ -37,14 +43,26 @@ tasks.register('EncryptEPub', Jar) {
|
|||||||
from {
|
from {
|
||||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
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 {
|
artifacts {
|
||||||
archives EncryptEPub
|
archives EncryptEPub, AdeptActivateCli
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
|
|||||||
Reference in New Issue
Block a user