From 239fbab74566e725e108feb34a5eaf38a82ad97f Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Mon, 9 Jun 2025 17:15:35 +0100 Subject: [PATCH] test --- build.gradle | 3 ++- stirling-pdf/build.gradle | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d1fc271cd..96b8a7431 100644 --- a/build.gradle +++ b/build.gradle @@ -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/**' } diff --git a/stirling-pdf/build.gradle b/stirling-pdf/build.gradle index 1cbc84ca2..65272fc48 100644 --- a/stirling-pdf/build.gradle +++ b/stirling-pdf/build.gradle @@ -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