forked from bbottema/simple-java-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
how to release.txt
40 lines (32 loc) · 1.28 KB
/
how to release.txt
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
40
Prerequisite:
You need GPG installed (comes along with GIT installation in the \bin folder) and you need to create a keyring, used for signing artifacts.
If you have an existing key, simply import it:
gpg --allow-secret-key-import --import <keyring>.gpg
To release:
1. update release notes and github readme page (don't commit)
2. remove SNAPSHOT version
3. mvn -DperformRelease=true clean deploy
(set password in settings.xml or use local pgp key password, for which the public key must have been sent to a public key server,
eg: gpg --keyserver hkp://keyserver.ubuntu.com --send-keys 05AC6403)
server needed in settings.xml (see below)
4. add new SNAPSHOT version and commit everything
5. Go to https://oss.sonatype.org and release the artifact so it is submitted to Maven Central
maven's settings.xml:
<server>
<id>ossrh</id>
<username>sonatype user</username>
<password>sonatype password</password>
</server>
To have a global gpg password so that it will use that automatically:
<profiles>
<profile>
<id>gpg</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>letmein</gpg.passphrase>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>gpg</activeProfile>
</activeProfiles>