-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged version2 branch (which was created improperly) into master, fo…
…r 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
- Loading branch information
Showing
197 changed files
with
16,781 additions
and
23,801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,76 @@ | ||
# Eclipse stuff | ||
.classpath | ||
.project | ||
.settings/ | ||
.checkstyle | ||
|
||
# IntelliJ stuff | ||
.idea | ||
*.iml | ||
|
||
# Build artifacts | ||
*.class | ||
target/ | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
/target/ | ||
|
||
# NATS stuff | ||
gnatsd.log | ||
*.csv | ||
|
||
# NATS stuff # | ||
############## | ||
gnatsd.log | ||
*.csv | ||
|
||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
/bin | ||
|
||
# Packages # | ||
############ | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store* | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
|
||
# Editor Files # | ||
################ | ||
*~ | ||
*.swp | ||
|
||
# Gradle Files # | ||
################ | ||
.gradle | ||
.m2 | ||
|
||
# Build output directies | ||
/target | ||
*/target | ||
/build | ||
*/build | ||
|
||
# IntelliJ specific files/directories | ||
out | ||
.idea | ||
*.ipr | ||
*.iws | ||
*.iml | ||
atlassian-ide-plugin.xml | ||
|
||
# Eclipse specific files/directories | ||
.classpath | ||
.project | ||
.settings | ||
.metadata | ||
|
||
# NetBeans specific files/directories | ||
.nbattrs | ||
|
||
# VSCode | ||
.vscode/ | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,37 @@ | ||
dist: trusty | ||
sudo: required | ||
language: java | ||
sudo: required | ||
jdk: | ||
- oraclejdk8 | ||
- openjdk8 | ||
before_script: | ||
- wget "https://github.com/nats-io/gnatsd/releases/download/$gnatsd_version/gnatsd-$gnatsd_version-linux-amd64.zip" | ||
-O tmp.zip | ||
- unzip tmp.zip | ||
- mv gnatsd-$gnatsd_version-linux-amd64 gnatsd | ||
before_install: | ||
- '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' | ||
- export PATH=$PATH:${TRAVIS_BUILD_DIR}/target | ||
- echo "MAVEN_OPTS='-Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom'" > ~/.mavenrc | ||
- openssl aes-256-cbc -K $encrypted_f07928735f08_key -iv $encrypted_f07928735f08_iv | ||
-in .travis/nats.travis.gpg.enc -out .travis/nats.travis.gpg -d | ||
install: | ||
- sudo apt-get install -y gnupg2 | ||
- "./gradlew assemble -x signArchives" | ||
script: | ||
- mvn --settings .travis/settings.xml clean test -B -U | ||
after_success: | ||
- mvn --settings .travis/settings.xml coveralls:report | ||
- "./gradlew check" | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- "$HOME/.m2" | ||
deploy: | ||
- provider: script | ||
skip_cleanup: true | ||
script: ".travis/deploy.sh" | ||
on: | ||
repo: nats-io/java-nats | ||
branch: master | ||
jdk: oraclejdk8 | ||
- provider: script | ||
skip_cleanup: true | ||
script: ".travis/deploy.sh" | ||
on: | ||
repo: nats-io/java-nats | ||
tags: true | ||
jdk: oraclejdk8 | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
after_success: | ||
- "./gradlew test jacocoTestReport coveralls" | ||
- "./gradlew uploadArchives" | ||
- "test ${TRAVIS_PULL_REQUEST} = 'false' && test ${TRAVIS_BRANCH} = 'master' && ./gradlew closeAndReleaseRepository" | ||
env: | ||
global: | ||
- GPG_DIR=${TRAVIS_BUILD_DIR}/.travis/keyrings | ||
- secure: F1pNsvz6aUIO7SoZX8aBP7RczzWO+IDUL7CafEEUkwFmfVcESr+sDauDW+sCW5otwOl+CVhfln0XhZDdSVdN3HETYjvQrZplNQMatRKMMVcDdVuKx1kqSTLFwW++qlLGJ3XeKgSZpTDHApILs9KwRuTnNooCin5k76kNfLxaF3k7o6Zu0G/ddgXl9FyBFoj0g65LoksJcuA06MczmNh6uSxEvV2fStMDp0DxZsoGgT4fF/XlRKhj/YNCSWeuW5FAOAUtPapZljvaxYES+ZJBnpsuyFHuKXFTN2t6OOgTi+KjXHYKGBuG+0RuxLImIs42+Iew0QT6JdI8EqlQJCQ6mQtb0MOuozWXA2ukBcbNP/M5Wh+XZIZPkKR+Hrgr/FTS4TOxAwGW5B0nExiMe54Bqgr6HqgJ6TuxYiBuUhSgA7pVuyRfJcderpO9ZsSiDl0PIL6Cdg0ZKfrYgTrs+63CjdEhX0KyqUG51Y0LpDaF6Pp/nX5pp40briDUJSlimUVM+9IAxFUvUE8XMsCswYUl7hDOSYMxltsb9YgwpxIKGgT+7PD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EHOIBTubf+tKavbU9UPu+3QDRj1ohCklrh8/eaAWXR4ntyTcL+TmP48lQeZA0O+IwglxrCTvRB/lhX5sUUVCIMejaMCiPlzXMcGzJZixl1ZVgEALq77UVv+d+xnC8oFmfdkAFsF8jbcMwqe0D3+uRHqlR3wZXPTMyb/NxysYfvNBD8xVU6vPqLWW7KPxDtEpCO4m2J6Tn1KxuAocowcPUiL/Xdi5Yc5PV5k10kHjBELhAAexw+1doyzlKKwZdjLZt/4KeDxYETPKFgkUrnk7HUCoMdlopIhBMxm5j0fABBk9cnX8DZ826ZlgIJ5YFgkZJkPLyZv8RALTsTzeiyRroPvDckF7+wELkCY= | ||
- secure: n1r8PLtKgQbW0v0C+MzKRg+EcSXsBBnBe1u8/OyPdC84X6Zwe7JRv/C55Zx71I3yzLhlY6zjBtsNBTO1hgViDPlnDGFl3BL2+fQEi6sofqThgaTSB4UIqTVY8jDYvXp7fcLqN4jM83ElTlfWRSlQHyQ5FKLdla81EcGOB+cL/BObE+Adf9CGGcf7oUd+2MVU+mrEZZTRvaUk32eXzYqEHfib1EHOvyf4ACXbGHe7bIaO6dxAhVNlTjbDdyEdSDFTrtNCFA+t0780IcPhf7uaOy/JBFZ2uL33IqUGih44/GsHj2zJjJmHEL2NtcBhLeuAbRFT6VuE+13DtaB7eNwuXCD4d553vFWK0jT3eKmVgePswHmB1Vs8wsGa92LQLP8vHDCqeMBYzCxWK3hlJj+bzok9AXdyn0IECMTMXc9KLNDIfHrvvmu1DfpuKklmTETII4zSkcPkMAO+VU+kxJ+krf7CYb519KDGpF97bLBWnBboBj3WOx70ux1Fm9ah28YEMPuGHp3Ft6o7ozi2eP8a4YxXo8wQUxe62UIx0e4hDv43aa2Qzvnu9ldEL21WduzlBGjjPTD2GxtkIaB8H1nmH9sgShGVfNwcba3LlO/xU5nUTbrQVcP6WEvlvkdfQmbX4AGh1jCWLWVvxjyPxfZrlARE1JRV5x0oOeH79KA9a18= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
|
||
# Deploying | ||
|
||
## Introduction | ||
|
||
There are currently two steps to the deployment, travis + sonatype, with a few random extra bits of knowledge. | ||
|
||
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.) | ||
|
||
## Important note about release repositories | ||
|
||
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. | ||
|
||
## Manually Deploying | ||
|
||
You can deploy manually by setting up your gradle.properties to have: | ||
|
||
```ascii | ||
signing.keyId=<TRAVIS_GPG_KEY_ID> | ||
signing.password=<TRAVIS_KEY_PASSPHRASE> | ||
signing.secretKeyRingFile=<PATH TO THE KEYRING> | ||
ossrhUsername=<YOUR_JIRA_USER_NAME> | ||
ossrhPassword=<YOUR_JIRA_PASSWORD> | ||
#local_archives=true | ||
``` | ||
|
||
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 | ||
|
||
```bash | ||
> ./gradlew uploadArchives | ||
``` | ||
|
||
to upload to the repo. | ||
|
||
## Automating the travis deploy | ||
|
||
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) | ||
|
||
The global/secure values are used to deploy, they can be regenerated/created by someone with access to | ||
the sonatype repository | ||
|
||
You can use --add or copy and paste to the global section manually. | ||
I had issues with the repo, so you may want to add -r nats-io/java-nats | ||
|
||
```bash | ||
> cd java-nats | ||
> travis encrypt SONATYPE_USERNAME="<YOUR_JIRA_USER_NAME>" --add | ||
> travis encrypt SONATYPE_PASSWORD="<YOUR_JIRA_PASSWORD>" --add | ||
> travis encrypt GPG_KEY_ID="<TRAVIS_GPG_KEY_ID>" --add | ||
> travis encrypt GPG_KEY_PASSPHRASE="<TRAVIS_KEY_PASSPHRASE>" --add | ||
``` | ||
|
||
or use | ||
|
||
```bash | ||
> travis encrypt -i | ||
``` | ||
|
||
to avoid passwords in shell history. | ||
|
||
To get the signing key to travis, export it and put it in the .travis folder | ||
|
||
```bash | ||
> gpg --export-secret-key <TRAVIS_KEY_ID> > nats.travis.gpg | ||
> travis encrypt-file .travis/nats.travis.gpg | ||
``` | ||
|
||
Update the before install as instructed | ||
|
||
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. | ||
|
||
## Releasing | ||
|
||
### Using Gradle | ||
|
||
I found the [gradle-nexus-staging-plugin](https://github.com/Codearte/gradle-nexus-staging-plugin/) which can release from staging. | ||
|
||
From the readme, you can use the three tasks: | ||
|
||
* 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) | ||
* releaseRepository - releases a closed repository (required to put artifacts to Maven Central aka The Central Repository) | ||
* closeAndReleaseRepository - closes and releases a repository (an equivalent to closeRepository releaseRepository) | ||
|
||
This last one will fail if the repo already exists using the specified version number | ||
|
||
### Manual release | ||
|
||
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: | ||
|
||
1. Log into Sonatype Pro | ||
2. Click “Staging Repositories” and scroll to the bottom of the list, look for ionats | ||
3. Check the contents in the tab | ||
4. Click “Close” at the top of the list | ||
5. Click “Release”! at the top of the list | ||
|
||
## The signing key | ||
|
||
The key is encrypted into github using the above instructions. The public key was uploaded to a central site by exporting it: | ||
|
||
```bash | ||
gpg --export -a "nats.io" > public.key | ||
``` | ||
|
||
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: | ||
|
||
```bash | ||
> gpg --keyserver keyserver.ubuntu.com --send-keys <keyid> | ||
> gpg --keyserver pool.sks-keyservers.net --send-keys <keyid> | ||
> gpg --keyserver keys.gnupg.net --send-keys <keyid> | ||
> gpg --keyserver pgp.mit.edu --send-keys <keyid> | ||
``` | ||
|
||
The entire key process is very very painful, and seems to take time to propagate |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.