diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 555df17614c6..fb4275028eba 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,7 +32,8 @@ concurrency: permissions: {} env: - MIMIR_VERSION: 0.11.2 + # Keep in sync with mimir testing version in pom.xml + MIMIR_VERSION: 0.11.4 MIMIR_BASEDIR: ~/.mimir MIMIR_LOCAL: ~/.mimir/local MAVEN_OPTS: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./target/java_heapdump.hprof @@ -53,6 +54,15 @@ jobs: with: persist-credentials: false + - name: Verify Mimir version alignment + shell: bash + run: | + POM_VERSION=$(grep -A2 'eu.maveniverse.maven.mimir' pom.xml | grep '' | sed 's/.*\(.*\)<\/version>.*/\1/') + if [ "$POM_VERSION" != "${{ env.MIMIR_VERSION }}" ]; then + echo "::error::MIMIR_VERSION (${{ env.MIMIR_VERSION }}) does not match pom.xml ($POM_VERSION) — update MIMIR_VERSION in this workflow" + exit 1 + fi + - name: Prepare Mimir for Maven 3.x shell: bash run: | diff --git a/pom.xml b/pom.xml index 13ef71e0f8e5..208518b70e83 100644 --- a/pom.xml +++ b/pom.xml @@ -690,10 +690,11 @@ under the License. jmh-generator-annprocess ${jmhVersion} + eu.maveniverse.maven.mimir testing - 0.11.2 + 0.11.4