Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<exec-maven-plugin.version>3.6.4</exec-maven-plugin.version>
<palantir-java-format.version>2.97.0</palantir-java-format.version>

<central-publishing-maven-plugin.version>0.11.0</central-publishing-maven-plugin.version>
<central-publishing-maven-plugin.version>0.12.0</central-publishing-maven-plugin.version>
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.16.0</maven-compiler-plugin.version>
<maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
Expand Down
20 changes: 19 additions & 1 deletion scripts/verify-release-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,34 @@ 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"
if [ ! -s "$file" ]; then
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

Expand Down
Loading