diff --git a/app/core/src/test/java/stirling/software/SPDF/bench/MergeBenchmark.java b/app/core/src/test/java/stirling/software/SPDF/bench/MergeBenchmark.java index 0b2f96b13b..8429c94fdb 100644 --- a/app/core/src/test/java/stirling/software/SPDF/bench/MergeBenchmark.java +++ b/app/core/src/test/java/stirling/software/SPDF/bench/MergeBenchmark.java @@ -131,13 +131,17 @@ public final class MergeBenchmark { * Invoke explicitly with: * *
{@code
- * ./gradlew :stirling-pdf:test --tests '*MergeBenchmark*' -i
+ * ./gradlew :stirling-pdf:test --tests '*MergeBenchmark*' \
+ * -Dmerge.bench=true -Dmerge.bench.docs=4 -Dmerge.bench.pages=70
* }
*
- * Test is filename-targeted (only the {@code --tests} filter runs it) - * so it doesn't slow down the regular test suite. + *
Gated behind {@code -Dmerge.bench=true} so it stays out of normal + * CI runs — generating the 1+ GB of input PDFs takes ~60 s and the + * merges burn another ~30 s, neither of which belongs in regular + * test cycles. */ @Test + @EnabledIfSystemProperty(named = "merge.bench", matches = "true") void compareMergeMemoryFootprint() throws Exception { main(new String[0]); } @@ -153,8 +157,10 @@ public final class MergeBenchmark { * *
Saves ~10 minutes of wall-clock vs running three separate test * invocations because the 1+ GB of input PDFs only gets generated once. + * Gated behind {@code -Dmerge.bench=true} like the other benchmark. */ @Test + @EnabledIfSystemProperty(named = "merge.bench", matches = "true") void compareAllMergeScenarios() throws Exception { Path workDir = Files.createTempDirectory("merge-bench-all-"); System.out.println("Work dir: " + workDir); diff --git a/build.gradle b/build.gradle index 8ef94fa98e..42e940f704 100644 --- a/build.gradle +++ b/build.gradle @@ -190,9 +190,6 @@ subprojects { allowInsecureProtocol = true } } - // mavenLocal first so we can iterate on JPDFium changes locally - // (publishToMavenLocal in the JPDFium repo) before pushing. - mavenLocal() maven { url = "https://build.shibboleth.net/maven/releases" } maven { url = "https://repository.jboss.org/" } // Stirling-Tools JPDFium snapshots — anonymous read, no auth.