From f40ee10dcb08b12965eccb71b368a326feac0af3 Mon Sep 17 00:00:00 2001 From: Jerry Lee Date: Tue, 6 Aug 2024 11:41:36 +0800 Subject: [PATCH] chore: update `extra-enforcer-rules` maven plugin config, and improve profile config --- pom.xml | 84 ++++++++++++++++++++-------------------- scripts/integration_test | 6 +-- 2 files changed, 44 insertions(+), 46 deletions(-) diff --git a/pom.xml b/pom.xml index 9d315385..1a0065f7 100644 --- a/pom.xml +++ b/pom.xml @@ -489,7 +489,8 @@ default-logging-dependencies - !enableLog4j2LoggingDependencies + switchToLog4j2LoggingDependencies + !true @@ -515,15 +516,11 @@ enable-log4j2-logging-dependencies - enableLog4j2LoggingDependencies + switchToLog4j2LoggingDependencies + true - - org.slf4j - slf4j-api - true - org.apache.logging.log4j log4j-slf4j2-impl @@ -537,43 +534,13 @@ - enable-test-jar-if-not-maven-skip-test + default-arch-unit-test - maven.test.skip + skipDefaultProfileArchUnitTest !true - - - - org.apache.maven.plugins - maven-jar-plugin - - - - - test-jar - - - - - - - - - enable-arch-unit-test - - - !skipDefaultProfileArchUnitTest - - @@ -617,6 +584,37 @@ + + enable-test-jar-if-not-maven-skip-test + + + maven.test.skip + !true + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + + test-jar + + + + + + + disable-javac-options-warning-for-java21+ @@ -658,12 +656,12 @@ 21 - + ${maven.compiler.source} - - test - + + com.tngtech.archunit:archunit + diff --git a/scripts/integration_test b/scripts/integration_test index 006431b7..5a575957 100755 --- a/scripts/integration_test +++ b/scripts/integration_test @@ -53,9 +53,9 @@ mvu::mvn_cmd clean install # test by multiply version jdks ######################################## -readonly MVN_OPTS_FOR_JAVA8='-Dkotlin.version=1.6.0 -P!default-logging-dependencies -P!enable-arch-unit-test' -readonly MVN_OPTS_FOR_JAVA11='-Dkotlin.version=1.7.0 -P!default-logging-dependencies -P!enable-arch-unit-test -Dcffu.uncaught.exception.report=none' -readonly MVN_OPTS_FOR_JAVA17='-Dkotlin.version=1.8.0 -DenableLog4j2LoggingDependencies -Dcffu.uncaught.exception.report=full' +readonly MVN_OPTS_FOR_JAVA8='-Dkotlin.version=1.6.0 -P!default-logging-dependencies -P!default-arch-unit-test' +readonly MVN_OPTS_FOR_JAVA11='-Dkotlin.version=1.7.0 -P!default-logging-dependencies -P!default-arch-unit-test -Dcffu.uncaught.exception.report=none' +readonly MVN_OPTS_FOR_JAVA17='-Dkotlin.version=1.8.0 -DswitchToLog4j2LoggingDependencies -Dcffu.uncaught.exception.report=full' # about CI env var # https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables