Programme pour creer les fichiers ePub chiffrés, pour les tests.
This commit is contained in:
29
build.gradle
29
build.gradle
@@ -3,7 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
group 'epub.jgourour' // Replace with your group ID
|
||||
version '1.0-SNAPSHOT' // Replace with your version
|
||||
version '0.1-SNAPSHOT' // Replace with your version
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -14,9 +14,7 @@ dependencies {
|
||||
implementation 'net.java.dev.jna:jna-platform:5.17.0'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
jar.enabled = false
|
||||
|
||||
sourceSets {
|
||||
libraries {
|
||||
@@ -29,3 +27,26 @@ sourceSets {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('EncryptEPub', Jar) {
|
||||
archiveFileName = 'EncryptEPub.jar'
|
||||
manifest {
|
||||
attributes 'Main-Class': 'EncryptEPub' // Replace with your main class
|
||||
}
|
||||
from {sourceSets.main.output.classesDirs}
|
||||
dependsOn configurations.runtimeClasspath
|
||||
from {
|
||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE // Or INCLUDE, EXCLUDE, WARN, INHERIT
|
||||
}
|
||||
|
||||
jar.enabled = false // instead build serverJar, fullJar, i18neditorJar
|
||||
|
||||
|
||||
artifacts {
|
||||
archives EncryptEPub
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user