Skip to content

Commit dbeb188

Browse files
committed
create RELEASING.md, improve release pom profile
1 parent 42aeab0 commit dbeb188

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

RELEASING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Releasing
2+
3+
## Before release checklist
4+
5+
- maven build is ok
6+
- local repo sync with github
7+
8+
## Prepare release checklist
9+
10+
- incremented version in `pom.xml` and `README.md`
11+
- added signed release commit with comment `release X.X.X`
12+
- added tag `X.X.X` to commit
13+
- commit and tag are pushed to github
14+
15+
## Release to maven
16+
17+
- Run command `mvn -P release deploy`
18+
- Login to https://oss.sonatype.org/, navigate to staging repositories, verify repository and promote it
19+
20+
21+
22+

pom.xml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ file.withWriter("UTF-8") {writer -> writer.writeLine str} ]]>
244244
<executions>
245245
<execution>
246246
<id>attach-sources</id>
247-
<phase>package</phase>
247+
<phase>deploy</phase>
248248
<goals>
249249
<goal>jar-no-fork</goal>
250250
</goals>
@@ -261,7 +261,7 @@ file.withWriter("UTF-8") {writer -> writer.writeLine str} ]]>
261261
<executions>
262262
<execution>
263263
<id>attach-javadocs</id>
264-
<phase>package</phase>
264+
<phase>deploy</phase>
265265
<goals>
266266
<goal>jar</goal>
267267
</goals>
@@ -286,13 +286,27 @@ file.withWriter("UTF-8") {writer -> writer.writeLine str} ]]>
286286
<executions>
287287
<execution>
288288
<id>sign-artifacts</id>
289-
<phase>verify</phase>
289+
<phase>deploy</phase>
290290
<goals>
291291
<goal>sign</goal>
292292
</goals>
293293
</execution>
294294
</executions>
295295
</plugin>
296+
<plugin>
297+
<groupId>org.apache.maven.plugins</groupId>
298+
<artifactId>maven-deploy-plugin</artifactId>
299+
<version>3.0.0</version>
300+
<executions>
301+
<execution>
302+
<id>deploy</id>
303+
<phase>deploy</phase>
304+
<goals>
305+
<goal>deploy</goal>
306+
</goals>
307+
</execution>
308+
</executions>
309+
</plugin>
296310
</plugins>
297311
</build>
298312
</profile>

0 commit comments

Comments
 (0)