This commit is contained in:
Anthony Stirling 2025-06-09 17:15:35 +01:00
parent 7d062c0824
commit 239fbab745
2 changed files with 25 additions and 1 deletions

View File

@ -50,8 +50,9 @@ sourceSets {
&& System.getProperty('DISABLE_ADDITIONAL_FEATURES') == 'true')) {
exclude 'stirling/software/proprietary/security/**'
}
println "STIRLING_PDF_DESKTOP_UI here3"
if (System.getenv('STIRLING_PDF_DESKTOP_UI') == 'false') {
println "STIRLING_PDF_DESKTOP_UI here4"
exclude 'stirling/software/SPDF/UI/impl/**'
}

View File

@ -80,9 +80,32 @@ sourceSets {
resources {
srcDirs += ['../configs']
}
java {
if (System.getenv('STIRLING_PDF_DESKTOP_UI') == 'false') {
exclude 'stirling/software/SPDF/UI/impl/**'
}
}
}
test {
java {
if (System.getenv('DOCKER_ENABLE_SECURITY') == 'false' || System.getenv('DISABLE_ADDITIONAL_FEATURES') == 'true'
|| (project.hasProperty('DISABLE_ADDITIONAL_FEATURES')
&& System.getProperty('DISABLE_ADDITIONAL_FEATURES') == 'true')) {
exclude 'stirling/software/proprietary/security/**'
}
println "STIRLING_PDF_DESKTOP_UI here1"
if (System.getenv('STIRLING_PDF_DESKTOP_UI') == 'false') {
println "STIRLING_PDF_DESKTOP_UI here2"
exclude 'stirling/software/SPDF/UI/impl/**'
}
}
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
zip64 = true