Skip to content

Commit ad38443

Browse files
author
Stephen Asbury
committed
Merged version2 branch (which was created improperly) into master, for 2.0.0 release.
* Used git merge to get version2 history * Manually resolved conflicts in favor of version2 * Manually removed files that were not in version2 * Committed with this message
2 parents 8c6345d + 4fe81a0 commit ad38443

File tree

197 files changed

+16781
-23801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+16781
-23801
lines changed

.gitignore

Lines changed: 76 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,76 @@
1-
# Eclipse stuff
2-
.classpath
3-
.project
4-
.settings/
5-
.checkstyle
6-
7-
# IntelliJ stuff
8-
.idea
9-
*.iml
10-
11-
# Build artifacts
12-
*.class
13-
target/
14-
15-
# Mobile Tools for Java (J2ME)
16-
.mtj.tmp/
17-
18-
# Package Files #
19-
*.jar
20-
*.war
21-
*.ear
22-
23-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24-
hs_err_pid*
25-
/target/
26-
27-
# NATS stuff
28-
gnatsd.log
29-
*.csv
1+
2+
# NATS stuff #
3+
##############
4+
gnatsd.log
5+
*.csv
6+
7+
# Compiled source #
8+
###################
9+
*.com
10+
*.class
11+
*.dll
12+
*.exe
13+
*.o
14+
*.so
15+
/bin
16+
17+
# Packages #
18+
############
19+
*.7z
20+
*.dmg
21+
*.gz
22+
*.iso
23+
*.rar
24+
*.tar
25+
*.zip
26+
27+
# Logs and databases #
28+
######################
29+
*.log
30+
31+
# OS generated files #
32+
######################
33+
.DS_Store*
34+
ehthumbs.db
35+
Icon?
36+
Thumbs.db
37+
38+
# Editor Files #
39+
################
40+
*~
41+
*.swp
42+
43+
# Gradle Files #
44+
################
45+
.gradle
46+
.m2
47+
48+
# Build output directies
49+
/target
50+
*/target
51+
/build
52+
*/build
53+
54+
# IntelliJ specific files/directories
55+
out
56+
.idea
57+
*.ipr
58+
*.iws
59+
*.iml
60+
atlassian-ide-plugin.xml
61+
62+
# Eclipse specific files/directories
63+
.classpath
64+
.project
65+
.settings
66+
.metadata
67+
68+
# NetBeans specific files/directories
69+
.nbattrs
70+
71+
# VSCode
72+
.vscode/
73+
74+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
75+
hs_err_pid*
76+
/target/

.travis.yml

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
11
dist: trusty
2-
sudo: required
32
language: java
3+
sudo: required
44
jdk:
55
- oraclejdk8
6-
- openjdk8
6+
before_script:
7+
- wget "https://github.com/nats-io/gnatsd/releases/download/$gnatsd_version/gnatsd-$gnatsd_version-linux-amd64.zip"
8+
-O tmp.zip
9+
- unzip tmp.zip
10+
- mv gnatsd-$gnatsd_version-linux-amd64 gnatsd
711
before_install:
8-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_d472159ded8f_key -iv $encrypted_d472159ded8f_iv -in .travis/keyrings/deploy_key.pem.enc -out .travis/keyrings/deploy_key.pem -d; fi'
9-
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/target
10-
- echo "MAVEN_OPTS='-Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom'" > ~/.mavenrc
12+
- openssl aes-256-cbc -K $encrypted_f07928735f08_key -iv $encrypted_f07928735f08_iv
13+
-in .travis/nats.travis.gpg.enc -out .travis/nats.travis.gpg -d
1114
install:
12-
- sudo apt-get install -y gnupg2
15+
- "./gradlew assemble -x signArchives"
1316
script:
14-
- mvn --settings .travis/settings.xml clean test -B -U
15-
after_success:
16-
- mvn --settings .travis/settings.xml coveralls:report
17+
- "./gradlew check"
18+
before_cache:
19+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
20+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
1721
cache:
1822
directories:
19-
- "$HOME/.m2"
20-
deploy:
21-
- provider: script
22-
skip_cleanup: true
23-
script: ".travis/deploy.sh"
24-
on:
25-
repo: nats-io/java-nats
26-
branch: master
27-
jdk: oraclejdk8
28-
- provider: script
29-
skip_cleanup: true
30-
script: ".travis/deploy.sh"
31-
on:
32-
repo: nats-io/java-nats
33-
tags: true
34-
jdk: oraclejdk8
23+
- "$HOME/.gradle/caches/"
24+
- "$HOME/.gradle/wrapper/"
25+
after_success:
26+
- "./gradlew test jacocoTestReport coveralls"
27+
- "./gradlew uploadArchives"
28+
- "test ${TRAVIS_PULL_REQUEST} = 'false' && test ${TRAVIS_BRANCH} = 'master' && ./gradlew closeAndReleaseRepository"
3529
env:
3630
global:
37-
- GPG_DIR=${TRAVIS_BUILD_DIR}/.travis/keyrings
38-
- secure: F1pNsvz6aUIO7SoZX8aBP7RczzWO+IDUL7CafEEUkwFmfVcESr+sDauDW+sCW5otwOl+CVhfln0XhZDdSVdN3HETYjvQrZplNQMatRKMMVcDdVuKx1kqSTLFwW++qlLGJ3XeKgSZpTDHApILs9KwRuTnNooCin5k76kNfLxaF3k7o6Zu0G/ddgXl9FyBFoj0g65LoksJcuA06MczmNh6uSxEvV2fStMDp0DxZsoGgT4fF/XlRKhj/YNCSWeuW5FAOAUtPapZljvaxYES+ZJBnpsuyFHuKXFTN2t6OOgTi+KjXHYKGBuG+0RuxLImIs42+Iew0QT6JdI8EqlQJCQ6mQtb0MOuozWXA2ukBcbNP/M5Wh+XZIZPkKR+Hrgr/FTS4TOxAwGW5B0nExiMe54Bqgr6HqgJ6TuxYiBuUhSgA7pVuyRfJcderpO9ZsSiDl0PIL6Cdg0ZKfrYgTrs+63CjdEhX0KyqUG51Y0LpDaF6Pp/nX5pp40briDUJSlimUVM+9IAxFUvUE8XMsCswYUl7hDOSYMxltsb9YgwpxIKGgT+7PDxVxyfQpdomlio3FVY6N9dxyVy5/7sE3pQCo8+eKf7fMp6RnRNmWBvo/AlOAx33Odhlp756LdY+PC1CeZ/Aq2B7nNhoI5MPFhzPBhpU60ECzcTdiz4q/WqbiM//Ug=
39-
- secure: DWr1spG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D3+uRHqlR3wZXPTMyb/NxysYfvNBD8xVU6vPqLWW7KPxDtEpCO4m2J6Tn1KxuAocowcPUiL/Xdi5Yc5PV5k10kHjBELhAAexw+1doyzlKKwZdjLZt/4KeDxYETPKFgkUrnk7HUCoMdlopIhBMxm5j0fABBk9cnX8DZ826ZlgIJ5YFgkZJkPLyZv8RALTsTzeiyRroPvDckF7+wELkCY=
37+
- secure: n1r8PLtKgQbW0v0C+MzKRg+EcSXsBBnBe1u8/OyPdC84X6Zwe7JRv/C55Zx71I3yzLhlY6zjBtsNBTO1hgViDPlnDGFl3BL2+fQEi6sofqThgaTSB4UIqTVY8jDYvXp7fcLqN4jM83ElTlfWRSlQHyQ5FKLdla81EcGOB+cL/BObE+Adf9CGGcf7oUd+2MVU+mrEZZTRvaUk32eXzYqEHfib1EHOvyf4ACXbGHe7bIaO6dxAhVNlTjbDdyEdSDFTrtNCFA+t0780IcPhf7uaOy/JBFZ2uL33IqUGih44/GsHj2zJjJmHEL2NtcBhLeuAbRFT6VuE+13DtaB7eNwuXCD4d553vFWK0jT3eKmVgePswHmB1Vs8wsGa92LQLP8vHDCqeMBYzCxWK3hlJj+bzok9AXdyn0IECMTMXc9KLNDIfHrvvmu1DfpuKklmTETII4zSkcPkMAO+VU+kxJ+krf7CYb519KDGpF97bLBWnBboBj3WOx70ux1Fm9ah28YEMPuGHp3Ft6o7ozi2eP8a4YxXo8wQUxe62UIx0e4hDv43aa2Qzvnu9ldEL21WduzlBGjjPTD2GxtkIaB8H1nmH9sgShGVfNwcba3LlO/xU5nUTbrQVcP6WEvlvkdfQmbX4AGh1jCWLWVvxjyPxfZrlARE1JRV5x0oOeH79KA9a18=

.travis/deploy.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

.travis/deploying.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
2+
# Deploying
3+
4+
## Introduction
5+
6+
There are currently two steps to the deployment, travis + sonatype, with a few random extra bits of knowledge.
7+
8+
Travis will either deploy a snapshot or a release based on the version in build.gradle. If you deploy a release build, you will need to manually go to sonatype to release it. Those builds are found in the staging area. (We need to try to automate this in the future.)
9+
10+
## Important note about release repositories
11+
12+
The gradle close and release process will fail if there is more than one repository staged. You may need to manually drop repositories from staging during testing on a single version number.
13+
14+
## Manually Deploying
15+
16+
You can deploy manually by setting up your gradle.properties to have:
17+
18+
```ascii
19+
signing.keyId=<TRAVIS_GPG_KEY_ID>
20+
signing.password=<TRAVIS_KEY_PASSPHRASE>
21+
signing.secretKeyRingFile=<PATH TO THE KEYRING>
22+
23+
ossrhUsername=<YOUR_JIRA_USER_NAME>
24+
ossrhPassword=<YOUR_JIRA_PASSWORD>
25+
26+
#local_archives=true
27+
```
28+
29+
the last line, if uncommented, will cause the deploy to go to your build folder, so that you can manually check it. Once you have the properties set up, simple type
30+
31+
```bash
32+
> ./gradlew uploadArchives
33+
```
34+
35+
to upload to the repo.
36+
37+
## Automating the travis deploy
38+
39+
See [https://rishikeshdarandale.github.io/build/deploying-to-oss-sonatype-using-travis/](https://rishikeshdarandale.github.io/build/deploying-to-oss-sonatype-using-travis/) and [https://central.sonatype.org/pages/gradle.html](https://central.sonatype.org/pages/gradle.html)
40+
41+
The global/secure values are used to deploy, they can be regenerated/created by someone with access to
42+
the sonatype repository
43+
44+
You can use --add or copy and paste to the global section manually.
45+
I had issues with the repo, so you may want to add -r nats-io/java-nats
46+
47+
```bash
48+
> cd java-nats
49+
> travis encrypt SONATYPE_USERNAME="<YOUR_JIRA_USER_NAME>" --add
50+
> travis encrypt SONATYPE_PASSWORD="<YOUR_JIRA_PASSWORD>" --add
51+
> travis encrypt GPG_KEY_ID="<TRAVIS_GPG_KEY_ID>" --add
52+
> travis encrypt GPG_KEY_PASSPHRASE="<TRAVIS_KEY_PASSPHRASE>" --add
53+
```
54+
55+
or use
56+
57+
```bash
58+
> travis encrypt -i
59+
```
60+
61+
to avoid passwords in shell history.
62+
63+
To get the signing key to travis, export it and put it in the .travis folder
64+
65+
```bash
66+
> gpg --export-secret-key <TRAVIS_KEY_ID> > nats.travis.gpg
67+
> travis encrypt-file .travis/nats.travis.gpg
68+
```
69+
70+
Update the before install as instructed
71+
72+
NOTE - if your password has special characters to BASH - which may be required by sonatype, you need to escape them before you encrypt them. If you do not then bash will mess them up when Travis tries to set them.
73+
74+
## Releasing
75+
76+
### Using Gradle
77+
78+
I found the [gradle-nexus-staging-plugin](https://github.com/Codearte/gradle-nexus-staging-plugin/) which can release from staging.
79+
80+
From the readme, you can use the three tasks:
81+
82+
* closeRepository - closes an open repository with the uploaded artifacts. There should be just one open repository available in the staging profile (possible old/broken repositories can be dropped with Nexus GUI)
83+
* releaseRepository - releases a closed repository (required to put artifacts to Maven Central aka The Central Repository)
84+
* closeAndReleaseRepository - closes and releases a repository (an equivalent to closeRepository releaseRepository)
85+
86+
This last one will fail if the repo already exists using the specified version number
87+
88+
### Manual release
89+
90+
Once the uploadArchives completes, your artifact will be staged with Sonatype, but you need to verify it all looks good before it’s released from the staging area. To do this, you need to follow these steps:
91+
92+
1. Log into Sonatype Pro
93+
2. Click “Staging Repositories” and scroll to the bottom of the list, look for ionats
94+
3. Check the contents in the tab
95+
4. Click “Close” at the top of the list
96+
5. Click “Release”! at the top of the list
97+
98+
## The signing key
99+
100+
The key is encrypted into github using the above instructions. The public key was uploaded to a central site by exporting it:
101+
102+
```bash
103+
gpg --export -a "nats.io" > public.key
104+
```
105+
106+
then manually uploading at `http://keys.gnupg.net:11371/`. So that sonatype can find it. You can also upload to `http://keyserver.ubuntu.com/` and `http://pool.sks-keyservers.net/pks/add`. You can also do this on the command line:
107+
108+
```bash
109+
> gpg --keyserver keyserver.ubuntu.com --send-keys <keyid>
110+
> gpg --keyserver pool.sks-keyservers.net --send-keys <keyid>
111+
> gpg --keyserver keys.gnupg.net --send-keys <keyid>
112+
> gpg --keyserver pgp.mit.edu --send-keys <keyid>
113+
```
114+
115+
The entire key process is very very painful, and seems to take time to propagate

.travis/keyrings/deploy_key.pem

Lines changed: 0 additions & 51 deletions
This file was deleted.
-3.17 KB
Binary file not shown.

.travis/keyrings/pubring.gpg.enc

-11.7 KB
Binary file not shown.

.travis/keyrings/secring.gpg.enc

-4.8 KB
Binary file not shown.

.travis/nats.travis.gpg.enc

2.58 KB
Binary file not shown.

0 commit comments

Comments
 (0)