This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 8ae3d45d36df CAMEL-23603 - Fix JDK 25 build on CI due to JSpecify
Nullable compilation error
8ae3d45d36df is described below
commit 8ae3d45d36df7b6fe785ffdf0d1070427dd5db31
Author: Aurélien Pupier <[email protected]>
AuthorDate: Wed May 27 15:15:33 2026 +0200
CAMEL-23603 - Fix JDK 25 build on CI due to JSpecify Nullable
compilation error
it is working on other JDK versions right now because the
nullaway/Jspecify is not activated on the version of JDK used on the CI.
Version on Jenkins CI:
* openjdk version "21.0.4" 2024-07-16 LTS
* OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed
mode, sharing)
Minimal version to have the nullaway/jspecify activated:
* 21.0.8+
* 17.0.19+
The jspecify/nullaway doesn't support the maven.compiler.fork=true for
our project for unknown reason.
I have not found the reason why this option was provided previously.
I checked in the release guide and this option is not used.
Signed-off-by: Aurélien Pupier <[email protected]>
---
Jenkinsfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 7ffd8774df91..b695f405139a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly -Dmaven.compiler.fork=true
-Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=1"
+def MAVEN_PARAMS = "-B -e -fae -V -Dnoassembly
-Dsurefire.rerunFailingTestsCount=2 -Dfailsafe.rerunFailingTestsCount=1"
def MAVEN_TEST_PARAMS = env.MAVEN_TEST_PARAMS ?: "-Dci.env.name=apache.org"
def MAVEN_TEST_PARAMS_UBUNTU = env.MAVEN_TEST_PARAMS ?:
"-Dci.env.name=apache.org"
def MAVEN_JDK_17_PARAMS = "-Denforcer.skip=true"