-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6864a7d
commit f846812
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# CodeArtifact Tagging for Merritt | ||
|
||
## Merritt JAR Versioning | ||
|
||
- Non-breaking changes SHOULD NOT update snapshot versions. | ||
- Breaking changes SHOULD update snapshot versions. | ||
- This will necessitate update of SNAPSHOT references in our 5 java services. | ||
- Consider registring Merritt JAR versions in the BOM files. | ||
|
||
## Update JAR Version | ||
|
||
``` | ||
bash-4.2$ pwd | ||
/apps/dpr2/merritt-workspace/tbrady/merritt-docker/mrt-services/dep_zk/mrt-zk | ||
bash-4.2$ mvn release:update-versions | ||
[INFO] Scanning for projects... | ||
[INFO] | ||
[INFO] ---------------------< org.cdlib.mrt.zk:MerrittZK >--------------------- | ||
[INFO] Building Test 1.0 | ||
[INFO] --------------------------------[ jar ]--------------------------------- | ||
[INFO] | ||
[INFO] --- maven-release-plugin:2.5.3:update-versions (default-cli) @ MerrittZK --- | ||
What is the new development version for "Test"? (org.cdlib.mrt.zk:MerrittZK) 1.1-SNAPSHOT: : | ||
``` | ||
|
||
Check in POM change to github. | ||
|
||
## Update WAR Version | ||
|
||
WAR file snapshot changes can be updated as listed above. | ||
|
||
## WAR File Tagged Release | ||
|
||
In `buildspec.yml`, change | ||
|
||
``` | ||
- mvn deploy:deploy-file -Durl=${CODEARTIFACT_URL} -DrepositoryId=cdlib-uc3-mrt-uc3-mrt-java -Dfile=audit-it/target/mrt-audit-it-1.0-SNAPSHOT.war | ||
- mvn deploy:deploy-file -Durl=${CODEARTIFACT_URL} -DrepositoryId=cdlib-uc3-mrt-uc3-mrt-java -Dfile=audit-war/target/mrt-auditwarpub-1.0-SNAPSHOT.war | ||
``` | ||
|
||
TO | ||
|
||
``` | ||
- mvn deploy:deploy-file -Durl=${CODEARTIFACT_URL} -DrepositoryId=cdlib-uc3-mrt-uc3-mrt-java -Dfile=audit-it/target/mrt-audit-it-1.0-SNAPSHOT.war -Dversion=2.0.0 | ||
- mvn deploy:deploy-file -Durl=${CODEARTIFACT_URL} -DrepositoryId=cdlib-uc3-mrt-uc3-mrt-java -Dfile=audit-war/target/mrt-auditwarpub-1.0-SNAPSHOT.war -Dversion=2.0.0 | ||
``` | ||
|
||
TODO: can we trigger the insertion of the version if a new tag is created? |