From b82c926d71c13f4b999a90d91a811160f9de0600 Mon Sep 17 00:00:00 2001 From: Jean Helou Date: Fri, 15 Aug 2025 22:27:44 +0200 Subject: [PATCH 1/3] [JAMES-3978] build cache for scala compiler plugin --- pom.xml | 267 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 265 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index cc307d671a5..7ee40d7e12f 100644 --- a/pom.xml +++ b/pom.xml @@ -3179,6 +3179,263 @@ + + net.alchim31.maven + scala-maven-plugin + + + scala-compile-first + + + + sourceDir + includes + excludes + + true + true + + + + classpathElements + COMPILE_CLASSPATH + + + + + addJavacArgs + + + addScalacArgs + + + additionalDependencies + + + args + + + checkMultipleScalaVersions + + + compileOrder + + + displayCmd + + + encoding + + + failOnMultipleScalaVersions + + + forceUseArgFile + + + fork + + + javacArgs + + + jvmArgs + + + recompileMode + + + release + + + scalaClassName + + + scalaCompatVersion + + + scalaHome + + + scalaOrganization + + + scalaVersion + + + sendJavaToScalac + + + skipMain + + + source + + + target + + + useCanonicalPath + + + + project + session + notifyCompilation + javacGenerateDebugSymbols + + pluginArtifacts + dependencies + compilerPlugins + classpath + + + + compilation is CPU-bound + + + outputDir + + + + + + + secondaryCacheDir + + + analysisCacheFile + + + + + + scala-test-compile + + skip + + + + + testSourceDir + includes + excludes + + true + true + + + + classpathElements + COMPILE_CLASSPATH + + + + + addJavacArgs + + + addScalacArgs + + + additionalDependencies + + + args + + + checkMultipleScalaVersions + + + compileOrder + + + displayCmd + + + encoding + + + failOnMultipleScalaVersions + + + forceUseArgFile + + + fork + + + javacArgs + + + jvmArgs + + + recompileMode + + + release + + + scalaClassName + + + scalaCompatVersion + + + scalaHome + + + scalaOrganization + + + scalaVersion + + + sendJavaToScalac + + + source + + + target + + + useCanonicalPath + + + + project + session + notifyCompilation + javacGenerateDebugSymbols + + pluginArtifacts + dependencies + compilerPlugins + + + + compilation is CPU-bound with well-defined inputs and outputs + + + testOutputDir + + + + + + + secondaryCacheDir + + + testAnalysisCacheFile + + + + + + @@ -3204,7 +3461,7 @@ net.alchim31.maven scala-maven-plugin - 4.9.5 + 4.9.6 all ${target.jdk} @@ -3233,9 +3490,15 @@ - scala-compile-first + scala-add-source add-source + + process-resources + + + scala-compile-first + compile process-resources From 7bd14b0a48903473867f906e2297002fefdc9a26 Mon Sep 17 00:00:00 2001 From: Jean Helou Date: Fri, 15 Aug 2025 23:03:20 +0200 Subject: [PATCH 2/3] [JAMES-3978] build cache for jacoco report plugin --- pom.xml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/pom.xml b/pom.xml index 7ee40d7e12f..3067e726dea 100644 --- a/pom.xml +++ b/pom.xml @@ -3436,6 +3436,71 @@ + + org.jacoco + jacoco-maven-plugin + + skip + + + + jacoco-report + + + + dataFileExcludes + + + dataFileExcludes + + + dataFileIncludes + + + excludes + + + footer + + + includeCurrentProject + + + includes + + + outputEncoding + + + sourceEncoding + + + title + + + + project + reactorProjects + + formats + + + + Test coverage reports depend on test execution and don't affect final build product. + + + outputDirectory + + + + + + From 9d8cfeb77399c6a1d54dd9073eebb77b44682bf9 Mon Sep 17 00:00:00 2001 From: Jean Helou Date: Sun, 14 Sep 2025 14:45:05 +0200 Subject: [PATCH 3/3] [JAMES-3978] enables test output caching using runtimeClasspath normalization to ignore git.properties which was pointed out as preventing caching by a build scan comparison git.properties are not expected to change test and coverage output much anyways. --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index 3067e726dea..f6d1a6fe05a 100644 --- a/pom.xml +++ b/pom.xml @@ -3502,6 +3502,13 @@ + + + + git.properties + + +