diff --git a/pom.xml b/pom.xml index 76adb3b..4712abe 100644 --- a/pom.xml +++ b/pom.xml @@ -75,7 +75,7 @@ 3.6.4 2.97.0 - 0.11.0 + 0.12.0 3.6.0 3.16.0 3.6.3 diff --git a/scripts/verify-release-artifacts.sh b/scripts/verify-release-artifacts.sh index df240ca..ff6fcce 100755 --- a/scripts/verify-release-artifacts.sh +++ b/scripts/verify-release-artifacts.sh @@ -36,9 +36,23 @@ esac --settings "$settings" \ -Prelease \ -Dgpg.skip=true \ - -Dcentral.skipPublishing=true \ + -DskipUpload=true \ clean deploy +bundle="$root/target/central-publishing/central-bundle.zip" +entries=$(unzip -Z1 "$bundle") +if printf '%s\n' "$entries" | grep -Eq '(^|/)(maven-metadata[^/]*|_remote\.repositories)(/|$)|foundation/aep/aep-(examples|conformance)/'; then + echo "Release bundle contains local repository metadata or unpublished modules." >&2 + exit 1 +fi + +for artifact in aep-java aep-bom aep-core aep-json-jackson2 aep-json-jackson3 aep-agent aep-service aep-httpserver aep-servlet aep-spring-webmvc aep-platform; do + if ! printf '%s\n' "$entries" | grep -Fxq "foundation/aep/$artifact/$version/$artifact-$version.pom"; then + echo "Release bundle is missing the POM for $artifact." >&2 + exit 1 + fi +done + for artifact in aep-core aep-json-jackson2 aep-json-jackson3 aep-agent aep-service aep-httpserver aep-servlet aep-spring-webmvc aep-platform; do for classifier in "" -sources -javadoc; do file="$root/$artifact/target/$artifact-$version$classifier.jar" @@ -46,6 +60,10 @@ for artifact in aep-core aep-json-jackson2 aep-json-jackson3 aep-agent aep-servi echo "Missing release artifact: $file" >&2 exit 1 fi + if ! printf '%s\n' "$entries" | grep -Fxq "foundation/aep/$artifact/$version/$artifact-$version$classifier.jar"; then + echo "Release bundle is missing $artifact-$version$classifier.jar." >&2 + exit 1 + fi done done