Programme pour creer les fichiers ePub chiffrés, pour les tests.

This commit is contained in:
2025-10-14 04:57:34 -07:00
parent 1ce0ddc97c
commit a8c91283dc
3 changed files with 658 additions and 4 deletions

View File

@@ -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()
}