diff --git a/docs/documentation/pom.xml b/docs/documentation/pom.xml index 24fe1917d0d..a04c8aded14 100644 --- a/docs/documentation/pom.xml +++ b/docs/documentation/pom.xml @@ -27,7 +27,6 @@ 3.6.1 3.0.2 2.5.2 - 2.22.2 4.0.0 diff --git a/pom.xml b/pom.xml index cede4add997..ff56e2d7cef 100644 --- a/pom.xml +++ b/pom.xml @@ -176,8 +176,8 @@ 2.10 4.13.2 2.7.0.Final - - 3.0.0-M7 + + 3.5.3 1.4.01 3.1.7 3.22.0 @@ -1343,7 +1343,7 @@ org.apache.maven.plugins maven-surefire-plugin - ${surefire-plugin.version} + ${version.surefire.plugin} -Djava.awt.headless=true ${surefire.memory.settings} ${surefire.system.args} -Duser.language=en -Duser.region=US -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError alphabetical diff --git a/quarkus/server/pom.xml b/quarkus/server/pom.xml index 876875b135a..8f6b27d75c0 100644 --- a/quarkus/server/pom.xml +++ b/quarkus/server/pom.xml @@ -51,7 +51,7 @@ maven-surefire-plugin - ${surefire-plugin.version} + ${version.surefire.plugin} org.jboss.logmanager.LogManager diff --git a/quarkus/set-quarkus-version.sh b/quarkus/set-quarkus-version.sh index 41db6659e3e..d7e6122700a 100755 --- a/quarkus/set-quarkus-version.sh +++ b/quarkus/set-quarkus-version.sh @@ -47,19 +47,36 @@ if [ "$QUARKUS_BRANCH" == "$DEFAULT_QUARKUS_VERSION" ]; then fi QUARKUS_BOM_URL="https://raw.githubusercontent.com/quarkusio/quarkus/$QUARKUS_BRANCH/bom/application/pom.xml" +QUARKUS_PARENT_POM_URL="https://raw.githubusercontent.com/quarkusio/quarkus/$QUARKUS_BRANCH/independent-projects/parent/pom.xml" + +VERSIONS_FROM_QUARKUS_PARENT=( + "version.surefire.plugin" +) if ! $(curl --output /dev/null --silent --head --fail "$QUARKUS_BOM_URL"); then echo "Failed to resolve version from Quarkus BOM at '$QUARKUS_BOM_URL'" exit 1 fi +if ! $(curl --output /dev/null --silent --head --fail "$QUARKUS_PARENT_POM_URL"); then + echo "Failed to resolve version from Quarkus Parent pom.xml at '$QUARKUS_PARENT_POM_URL'" + exit 1 +fi + QUARKUS_BOM=$(curl -f -s "$QUARKUS_BOM_URL") +QUARKUS_PARENT_POM=$(curl -f -s "$QUARKUS_PARENT_POM_URL") echo "Setting Quarkus version: $QUARKUS_VERSION" $SCRIPT_DIR/../mvnw -B versions:set-property -f $SCRIPT_DIR/../pom.xml -Dproperty=quarkus.version -DnewVersion="$QUARKUS_VERSION" 1> /dev/null $SCRIPT_DIR/../mvnw -B versions:set-property -f $SCRIPT_DIR/../pom.xml -Dproperty=quarkus.build.version -DnewVersion="$QUARKUS_VERSION" 1> /dev/null +for dependency in "${VERSIONS_FROM_QUARKUS_PARENT[@]}"; do + VERSION=$(grep -oP "(?<=<$dependency>)[^<]*(?=)" <<< "$QUARKUS_PARENT_POM") + echo "Setting $dependency to $VERSION based on the Quarkus Parent pom.xml" + $SCRIPT_DIR/../mvnw versions:set-property -f $SCRIPT_DIR/../pom.xml -Dproperty="$dependency" -DnewVersion="$VERSION" 1> /dev/null +done + DEPENDENCIES_LIST=$(grep -oP '(?<=\)' "$SCRIPT_DIR/../pom.xml") echo "Changing dependencies: $DEPENDENCIES_LIST"