Skip to content

Commit

Permalink
RELEASE-checklist: update with changes to module arrangement
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Samuel <mikesamuel@gmail.com>
  • Loading branch information
mikesamuel committed Mar 25, 2024
1 parent dd92edf commit 6d55158
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions RELEASE-checklist.sh
Expand Up @@ -15,8 +15,8 @@ mvn -f aggregate install

echo
echo Browse to
echo "file://$PWD/target/site"
echo and check the spotbugs and jacoco reports.
echo "file://$PWD/owasp-java-html-sanitizer/target/site/jacoco/index.html"
echo and check the jacoco reports.

echo
echo Check https://central.sonatype.org/pages/apache-maven.html#nexus-staging-maven-plugin-for-deployment-and-release
Expand Down Expand Up @@ -46,10 +46,11 @@ cd "$RELEASE_CLONE"
# mvn release:update-versions puts -SNAPSHOT on the end no matter what
# so this is a two step process.
export VERSION_PLACEHOLDER=99999999999999-SNAPSHOT
for project in parent aggregate empiricism; do
POM_DIRS=". aggregate empiricism java8-shim java10-shim owasp-java-html-sanitizer"
for project in $POM_DIRS; do
mvn -f "$project"/pom.xml install
done
for project in parent aggregate empiricism; do
for project in $POM_DIRS; do
mvn -f "$project"/pom.xml \
release:update-versions \
-DautoVersionSubmodules=true \
Expand All @@ -71,7 +72,7 @@ perl -i.bak \
$EDITOR change_log.md

# A dry run.
mvn -f aggregate/pom.xml clean source:jar javadoc:jar verify \
mvn -f pom.xml clean source:jar javadoc:jar verify \
-DperformRelease=true

# Commit and tag
Expand All @@ -80,7 +81,7 @@ git tag -m "Release $NEW_VERSION" -s "release-$NEW_VERSION"
git push origin "release-$NEW_VERSION"

# Actually deploy.
mvn -f aggregate/pom.xml clean source:jar javadoc:jar verify deploy:deploy \
mvn -f pom.xml clean source:jar javadoc:jar verify deploy:deploy \
-DperformRelease=true

# Bump the development version.
Expand Down

0 comments on commit 6d55158

Please sign in to comment.