[JIRA] (JMVN-51) Release maven java-mvn-enforcer-data repository 1.0.13
Philip Smart (Jira)
jira at shibboleth.atlassian.net
Mon May 15 09:57:46 UTC 2023
Philip Smart ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=5afecdc1eb3ffa0c596652c4 ) *commented* on JMVN-51 ( https://shibboleth.atlassian.net/browse/JMVN-51?atlOrigin=eyJpIjoiYjBhYzgzNTQ0OThhNGQ2Y2E3YzBhMDUyNmE5NzJhMTIiLCJwIjoiaiJ9 )
Re: Release maven java-mvn-enforcer-data repository 1.0.13 ( https://shibboleth.atlassian.net/browse/JMVN-51?atlOrigin=eyJpIjoiYjBhYzgzNTQ0OThhNGQ2Y2E3YzBhMDUyNmE5NzJhMTIiLCJwIjoiaiJ9 )
Build and release enforcer-data 1.0.13.
# for interactive passphrase entry (maybe not required for others)
export GPG_TTY=$(tty)
# somewhere to store a tmp maven repo
export REPO=/tmp/rodsrepo
export THE_VERSION=1.0.13
export NEW_VERSION=1.0.14-SNAPSHOT
cd /tmp
git clone git at git.shibboleth.net:java-mvn-enforcer-data
cd java-mvn-enforcer-data
git checkout main
# Set version of the maven-dist-enforcer-parent to a PREVIOUS version, V1.0.1.
vi pom.xml
mvn -Dmaven.repo.local=$REPO -Prelease clean verify
# mvn -Dmaven.repo.local=$REPO -DgenerateBackupPoms=false -DnewVersion=$THE_VERSION versions:set
# Edit pom.xml, bump dependency versions to release
vi pom.xml
# Be sure there are not SNAPSHOT deps in any pom (from base dir).
git status
find . -name 'pom.xml' -exec grep SNAPSHOT {} \;
# If the output contains SNAPSHOTs change to release
mvn -Dmaven.repo.local=$REPO -Prelease clean verify
## Check the only changes are to the parent and the version
git diff
```
<parent>
<groupId>net.shibboleth.maven.enforcer.rules</groupId>
<artifactId>maven-dist-enforcer-parent</artifactId>
- <version>1.0.2-SNAPSHOT</version>
+ <version>1.0.1</version>
</parent>
<groupId>net.shibboleth.maven.enforcer.rules</groupId>
<artifactId>maven-dist-enforcer-data</artifactId>
<name>Shibboleth Maven Enforcer Data</name>
- <version>1.0.13-SNAPSHOT</version>
+ <version>1.0.13</version>
```
git add -A
git commit -m 'Update files to be tagged for release'
git tag -s -m 'Tag $THE_VERSION release' $THE_VERSION
#mvn -Dmaven.repo.local=$REPO -DgenerateBackupPoms=false -DnewVersion=$NEW_VERSION versions:set
vi pom.xml
# Update parent pom to 1.0.2-SNAPSHOT
# Be sure there are SNAPSHOTs in the right places.
find . -name 'pom.xml' -exec grep SNAPSHOT {} \;
# Diff should look like
```
<parent>
<groupId>net.shibboleth.maven.enforcer.rules</groupId>
<artifactId>maven-dist-enforcer-parent</artifactId>
- <version>1.0.1</version>
+ <version>1.0.2-SNAPSHOT</version>
</parent>
<groupId>net.shibboleth.maven.enforcer.rules</groupId>
<artifactId>maven-dist-enforcer-data</artifactId>
<name>Shibboleth Maven Enforcer Data</name>
- <version>1.0.13</version>
+ <version>1.0.14-SNAPSHOT</version>
```
git add -A
git commit -m 'Bump version after release'
git checkout $THE_VERSION
mvn -Dmaven.repo.local=$REPO -Prelease,sign clean verify
## commit the work
ssh -L 1581:127.0.0.1:1581 -N build.shibboleth.net -f
mvn -Dmaven.repo.local=$REPO -DskipTests -DdeployAtEnd=true -Prelease,sign deploy
git checkout main
git push origin main
git push origin $THE_VERSION
( https://shibboleth.atlassian.net/browse/JMVN-51#add-comment?atlOrigin=eyJpIjoiYjBhYzgzNTQ0OThhNGQ2Y2E3YzBhMDUyNmE5NzJhMTIiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JMVN-51#add-comment?atlOrigin=eyJpIjoiYjBhYzgzNTQ0OThhNGQ2Y2E3YzBhMDUyNmE5NzJhMTIiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:a5851ae )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230515/22958ea0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-4398f2df-c8f8-4658-abea-561deedca55e
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230515/22958ea0/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-235681d7-ad3f-42e7-8b1f-e74360a061e9
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230515/22958ea0/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-076da8da-a8d2-424a-b54a-169afac7cb3d
Type: image/png
Size: 484 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230515/22958ea0/attachment-0005.png>
More information about the commits
mailing list