From c512e93e27b4b26916a91cf17fe30e95af4729df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Tue, 26 Sep 2023 07:37:59 +0200 Subject: [PATCH] Make the compiler baseline configuration configurable by properties Currently the baseline settings are hardcoded (and always override the platform parent configuration), this extract these into some properties that can be overridden from the commandline. This also adjust the Jenkinsfile to use this new way of selectively disable replace/compare of the baseline in case of building the compiler-compiler. See https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/1395 --- Jenkinsfile | 2 +- org.eclipse.jdt.core.compiler.batch/pom.xml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4b1e8581ecc..2e4310ad6ef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,7 @@ pipeline { # via configuration/argLine property in pom.xml # export MAVEN_OPTS="-Xmx2G" - mvn clean install -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 -Dmaven.repo.local=$WORKSPACE/.m2/repository + mvn clean install -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99 -Dmaven.repo.local=$WORKSPACE/.m2/repository -DcompilerBaselineMode=disable -DcompilerBaselineReplace=none mvn -U clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \ -Ptest-on-javase-21 -Pbree-libs -Papi-check \ diff --git a/org.eclipse.jdt.core.compiler.batch/pom.xml b/org.eclipse.jdt.core.compiler.batch/pom.xml index 3d858e68a01..3b443d3850d 100644 --- a/org.eclipse.jdt.core.compiler.batch/pom.xml +++ b/org.eclipse.jdt.core.compiler.batch/pom.xml @@ -21,6 +21,8 @@ eclipse-plugin + common + warn true -warn:+fieldHiding,-unavoidableGenericProblems ${project.version} @@ -76,8 +78,8 @@ org.eclipse.tycho tycho-p2-plugin - warn - common + ${compilerBaselineMode} + ${compilerBaselineReplace}