-
Notifications
You must be signed in to change notification settings - Fork 5
/
release.sh
executable file
·39 lines (31 loc) · 979 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set -e
# Releasing to Maven Central can be confusing. So this will partially automate
# the process.
# http://central.sonatype.org/pages/apache-maven.html
# First, make sure you have your gpg key setup
# http://central.sonatype.org/pages/working-with-pgp-signatures.html
# Then make sure your ~/.m2/settings.xml has this stuff in it:
#
# <server>
# <id>ossrh</id>
# <username>youruser</username>
# <password>XXXXXXXXXX</password>
# </server>
# </servers>
#
# <profiles>
# <profile>
# <id>ossrh</id>
# <activation>
# <activeByDefault>true</activeByDefault>
# </activation>
# <properties>
# <gpg.executable>gpg</gpg.executable>
# <gpg.passphrase>XXXXXXXXXX</gpg.passphrase>
# </properties>
# </profile>
# </profiles>
./mvnw release:clean release:prepare -DdryRun -Darguments="-DskipTests"
./mvnw release:clean release:prepare -Darguments="-DskipTests"
./mvnw release:perform -Darguments="-DskipTests"