|
1 | 1 | Releasing
|
2 | 2 | =========
|
3 | 3 |
|
4 |
| -The process of deploying to maven central has been automated based on |
5 |
| -the [Complete guide to continuous deployment to maven central from Travis CI](http://www.debonair.io/post/maven-cd/) |
6 |
| -and will be executed whenever a non-snapshot version is committed. |
| 4 | +The deployment process of `cucumber-jvm-scala` is based on |
| 5 | +[Deploying to OSSRH with Apache Maven](http://central.sonatype.org/pages/apache-maven.html#deploying-to-ossrh-with-apache-maven-introduction). |
7 | 6 |
|
8 |
| -## Check [](https://travis-ci.org/cucumber/cucumber-jvm-scala) ## |
| 7 | +## Check [](https://travis-ci.org/cucumber/cucumber-jvm) ## |
9 | 8 |
|
10 | 9 | Is the build passing?
|
11 | 10 |
|
12 | 11 | ```
|
13 |
| -git checkout master |
| 12 | +git checkout main |
14 | 13 | ```
|
15 | 14 |
|
16 | 15 | Also check if you can upgrade any dependencies:
|
17 | 16 |
|
18 | 17 | ```
|
19 |
| -mvn versions:display-dependency-updates |
| 18 | +make update-dependency-versions |
20 | 19 | ```
|
21 | 20 |
|
22 | 21 | ## Make the release ##
|
23 | 22 |
|
24 |
| -Now release everything: |
| 23 | +Remove the empty sections in the changelog. Don't commit these but run: |
25 | 24 |
|
26 | 25 | ```
|
27 |
| -mvn release:clean release:prepare -DautoVersionSubmodules=true -Darguments="-DskipTests=true" |
| 26 | +make version |
28 | 27 | ```
|
29 | 28 |
|
30 |
| -Travis will now deploy everything. |
31 |
| - |
32 |
| -It is preferable to use the automated deployment process over the manual process. However should travis.ci fail or should the |
33 |
| -need arise to setup another continuous integration system the [Manual deployment](#manual-deployment) section |
34 |
| -describes how this works. |
35 |
| - |
36 |
| -# Manual deployment # |
| 29 | +Check if branch name and version are as expected. |
37 | 30 |
|
38 |
| -It is preferable to use the automated deployment process over the manual process. |
| 31 | +``` |
| 32 | +make release |
| 33 | +``` |
39 | 34 |
|
40 |
| -The deployment process of `cucumber-jvm` is based on |
41 |
| -[Deploying to OSSRH with Apache Maven](http://central.sonatype.org/pages/apache-maven.html#deploying-to-ossrh-with-apache-maven-introduction). |
42 |
| -This process is nearly identical for both snapshot deployments and releases. Whether a snapshot |
43 |
| -deployment or release is executed is determined by the version number. |
| 35 | +# GPG Keys # |
44 | 36 |
|
45 | 37 | To make a release you must have the `[email protected]` GPG private key imported in gpg2.
|
46 | 38 |
|
@@ -84,12 +76,3 @@ for example:
|
84 | 76 | </profiles>
|
85 | 77 | </settings>
|
86 | 78 | ```
|
87 |
| - |
88 |
| - |
89 |
| -# Deploy the release # |
90 |
| - |
91 |
| -``` |
92 |
| -mvn release:perform -Psign-source-javadoc -DskipTests=true |
93 |
| -``` |
94 |
| - |
95 |
| -Go into [Nexus](https://oss.sonatype.org/) and inspect, close and release the staging repository. |
0 commit comments