Skip to content

Commit 629af34

Browse files
committed
Update RELEASING
1 parent efee63a commit 629af34

File tree

2 files changed

+21
-29
lines changed

2 files changed

+21
-29
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ version:
1818
@echo ""
1919
.PHONY: version
2020

21+
update-compatibility:
22+
MSG_VERSION=$$(mvn help:evaluate -Dexpression=messages.version -q -DforceStdout 2> /dev/null) && \
23+
git clone --branch messages/v$$MSG_VERSION [email protected]:cucumber/cucumber.git target/cucumber
24+
rm -rf compatibility/src/test/resources/*
25+
cp -r target/cucumber/compatibility-kit/javascript/features compatibility/src/test/resources
26+
rm -rf target/cucumber
27+
.PHONY: update-compatibility
28+
2129
update-dependency-versions:
2230
mvn versions:force-releases
2331
mvn versions:update-properties -DallowMajorUpdates=false -Dmaven.version.rules="file://`pwd`/.m2/maven-version-rules.xml"
@@ -48,5 +56,6 @@ release: default update-changelog update-installdoc .commit-and-push-changelog-a
4856
git checkout "v$(NEW_VERSION)"
4957
mvn deploy -P-examples -P-compatibility -Psign-source-javadoc -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
5058
git checkout $(CURRENT_BRANCH)
59+
git fetch
5160
.PHONY: release
5261

RELEASING.md

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
11
Releasing
22
=========
33

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).
76

8-
## Check [![Build Status](https://travis-ci.org/cucumber/cucumber-jvm-scala.svg?branch=main)](https://travis-ci.org/cucumber/cucumber-jvm-scala) ##
7+
## Check [![Build Status](https://travis-ci.org/cucumber/cucumber-jvm.svg?branch=main)](https://travis-ci.org/cucumber/cucumber-jvm) ##
98

109
Is the build passing?
1110

1211
```
13-
git checkout master
12+
git checkout main
1413
```
1514

1615
Also check if you can upgrade any dependencies:
1716

1817
```
19-
mvn versions:display-dependency-updates
18+
make update-dependency-versions
2019
```
2120

2221
## Make the release ##
2322

24-
Now release everything:
23+
Remove the empty sections in the changelog. Don't commit these but run:
2524

2625
```
27-
mvn release:clean release:prepare -DautoVersionSubmodules=true -Darguments="-DskipTests=true"
26+
make version
2827
```
2928

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.
3730

38-
It is preferable to use the automated deployment process over the manual process.
31+
```
32+
make release
33+
```
3934

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 #
4436

4537
To make a release you must have the `[email protected]` GPG private key imported in gpg2.
4638

@@ -84,12 +76,3 @@ for example:
8476
</profiles>
8577
</settings>
8678
```
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

Comments
 (0)