11# Release Operations
22
3- ## Set the release version
3+ ## Update the release version
44
5- Run the Maven ` version:set ` goal:
5+ Run the Maven ` release:prepare ` goal:
66
77```
88$ git checkout master
99$ git pull
10- $ ./mvnw versions:set
10+ $ ./mvnw --batch-mode -DdryRun=true -DreleaseVersion=1.0.0 -DdevelopmentVersion=999-SNAPSHOT release:clean release:prepare
1111```
1212
13- After success, run the Maven ` version:commit ` goal:
13+ The value of ` releaseVersion ` is decided by the draft name of
14+ [ Releases] ( https://github.com/domaframework/doma-quarkus/releases ) .
1415
15- ```
16- $ ./mvnw versions:commit
17- ```
18-
19- Modify versions in README.md.
20-
21- Commit the release version:
22-
23- ```
24- $ git add --all
25- $ git commit -m "Release v1.0.0"
26- ```
27-
28- ## Push to the master branch
29-
30- Create a tag and push the commit and the tag:
31-
32- ```
33- $ git tag -a v1.0.0 -m "v1.0.0"
34- $ git push origin master --tags
35- ```
3616
3717## Build with GitHub Action
3818
@@ -41,7 +21,7 @@ The GitHub Action workflow [Java CI with Maven](.github/workflows/ci.yml) handle
4121The workflow builds the "doma-quarkus-parent", the "doma-quarkus-deployment" and the "doma-quarkus" artifacts
4222and pushes them to Maven Central[ Sonatype OSSRH] ( https://central.sonatype.org/pages/ossrh-guide.html ) .
4323
44- ## Publish artifacts to Maven Central from Sonatype OSSRH
24+ ## Publish artifacts to Maven Central
4525
4626Follow the instructions below:
4727
@@ -58,29 +38,11 @@ In a few minutes, all artifacts are copied to the [Maven Central Repository](htt
5838Open [ Releases] ( https://github.com/domaframework/doma-quarkus/releases )
5939and publish release notes.
6040
41+ ## Update README.md.
42+
43+ Modify version numbers.
44+
6145## Announce the release
6246
6347Announce the release of new version using Twitter.
6448- [ @domaframework ] ( https://twitter.com/domaframework )
65-
66- ## Set the next version
67-
68- Run the Maven ` version:set ` goal:
69-
70- ```
71- $ ./mvnw versions:set
72- ```
73-
74- After success, run the Maven ` version:commit ` goal:
75-
76- ```
77- $ ./mvnw versions:commit
78- ```
79-
80- Commit and push the next version:
81-
82- ```
83- $ git add --all
84- $ git commit -m "Next version [skip ci]"
85- $ git push origin master
86- ```
0 commit comments