You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start by running `mvn clean verify -Prelease` to make sure the project builds successfully,
44
-
artifact signing works, and the unit tests pass. To run the integration tests, run `mvn clean verify`
21
+
Start by checking the snapshot builds found [here](https://github.com/couchbase/java-dcp-client/actions/workflows/deploy-snapshot.yml) to ensure that everything looks good with the current commit.
22
+
23
+
To run the integration tests, run `mvn clean verify`
45
24
without specifying a profile.
46
25
When you're satisfied with the test results, it's time to...
47
26
@@ -50,42 +29,18 @@ When you're satisfied with the test results, it's time to...
50
29
1. Edit `pom.xml` and remove the `-SNAPSHOT` suffix from the version string.
51
30
2. Edit `examples/pom.xml` and update the `dcp.client.version` property to match the version string in Step 1.
52
31
3. Commit these changes, with message "Prepare x.y.z release"
53
-
(where x.y.z is the version you're releasing).
32
+
(where x.y.z is the version you're releasing). Note: the snapshot build for that commit will fail because we removed the snapshot suffix. This is expected.
54
33
55
34
## Tag the release
56
35
57
36
Run the command `git tag -s x.y.z` (where x.y.z is the release version number).
58
37
59
38
Use the previous version's tag message (e.g. `git show 0.11.0`) as a template for
60
-
the new version's tag message.
61
-
62
-
Don't push the tag right away, though. Wait until the release is successful and you're sure
63
-
there will be no more changes. Otherwise it can be a pain to remove an unwanted tag from Gerrit.
39
+
the new version's tag message and then push the tag.
64
40
65
41
## Go! Go! Go!
66
42
67
-
Make sure you don't have any uncommitted files in your workspace:
68
-
69
-
git status
70
-
71
-
should say "nothing to commit, working tree clean".
72
-
73
-
Here it is, the moment of truth. When you're ready to deploy to the Maven Central Repository:
74
-
75
-
./mvnw clean deploy -Prelease
76
-
77
-
Alternatively, if you prefer to inspect the staging repository and
78
-
[complete the release manually](https://central.sonatype.org/pages/releasing-the-deployment.html),
Whew, you did it! Or the build failed and you're looking at a cryptic error message, in which
84
-
case you might want to check out the Troubleshooting section below.
85
-
86
-
If the release succeeded, now's the time to publish the tag:
87
-
88
-
git push origin x.y.z
43
+
Run the release workflow found [here](https://github.com/couchbase/java-dcp-client/actions/workflows/deploy-release.yml) supplying the tag name you previously pushed.
89
44
90
45
## Prepare for next dev cycle
91
46
@@ -94,12 +49,6 @@ Update the `dcp.client.version` property in `examples/pom.xml` to refer to the
94
49
new snapshot version.
95
50
Commit and push to Gerrit. Breathe in. Breathe out.
96
51
97
-
## Publishing a snapshot
98
-
99
-
After every passing nightly build, a snapshot should be published to the Sonatype OSS snapshot repository by running this command:
100
-
101
-
./mvnw clean deploy -Psnapshot
102
-
103
52
## Troubleshooting
104
53
105
54
* Take another look at the Prerequisites section. Did you miss anything?
0 commit comments