Skip to content

Commit

Permalink
Merge pull request dropwizard#1 from mzamani/re-enable-publishing
Browse files Browse the repository at this point in the history
Re enable publishing
  • Loading branch information
Michael Zamani authored and GitHub Enterprise committed May 20, 2019
2 parents 91faf31 + 1c64998 commit 2fa7c6d
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 69 deletions.
31 changes: 22 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
dist: xenial
language: java
os:
- linux
jdk:
- openjdk8
- openjdk11
before_install:
- rm ~/.m2/settings.xml || true
- rm ~/.m2/settings.xml || true
- ulimit -c unlimited -S
- mvn -N io.takari:maven:wrapper
after_success:
- bash .travis_after_success.sh
- bash ci/after_success.sh
cache:
directories:
- $HOME/.m2

notifications:
email: false
- "$HOME/.m2"
deploy:
- provider: script
script: bash ci/deploy-snapshot.sh
on:
repo: dropwizard/dropwizard-health
tags: false
branch: master
jdk: openjdk8
- provider: script
script: bash ci/deploy-release.sh
on:
repo: dropwizard/dropwizard-health
tags: true
jdk: openjdk8
env:
global:
- secure: RPsipHHqg22GuRtj09bjq09RXyg9PvV2JeQKtPwafpT2DRQjMwQi4A5aeO8YW2J4lx0vBNScNkXvRvvqE7hVWahV3WFdbz6KT+uFtgTceoYpJp9J24mpYpv6f/K8LotqIP0uMloSZXzO97DT/yIzU0MqOzROqw7Ss1K4P0chde6HDDu7f4N7Og6BC8wyiJ4uhlwGoa27Xi59PooIw1zsEXjPhVpYgMCi3iF57i19gOverNhJ4SlaQtg+5/Ie91L7fBSn3hWdsi2bUCh3kM17HCCPOVJmO5fT48CcJzyNjGmA4i2EWub8dl7ssCHXbCRKyWywyo2vryKdjMxvOXUG46ISJgEo1S+2Z+lmOIbxklfPVzqc41UMe/kETXMs0JCKiJ8JAI6neEgSOCxB+jOByRa5zmEMNAkT/oNp0bllG0EawK46rG4shUkFy39n6rxDa360UYpFP2/Go0lMU0dodf41F5CW5FN9yLvgGl1Gv3ysRquLxO1rhqyQmFdcw7K7igvKGbhpluSRUHw5LD02yqJsyrNesWndVEz+9KjHvq++bk1SjDJZN2nQN/i/X+e5EMfXLxKIxAD7rwUPFz1Q2N+qLUJObL3TJPHlDiezYhzSnLvGWrI4gCwktBA6/TS3/7TRdTfK064XsTOw8FcTVUSTgbk/pK+mc51JyT6yhJQ=
- secure: BjplEOJujhM6DQWIxsyEnnw473GXHEQfndDlHZnFXB3lU6NYvK6mDXWUANRjD4JL3knvxazxk/TKPgw2pblL1mY6zs2HCMzaa7xlNzuoasNsT0ZygprbipalSxxl8+O5S1efuiAtrLwLHatahBKDN+dB9WygSiNG8ZbU2NlfsExQ/Id9on0Zpa6o5OioxDcQFpgaF2IQNiCBi+YOX1gyVbwEd/fFpLDQaIimZmxZzKy4f/T6v06TUfaZJBagB+pjVTjIOxpOLE50yIX+EWHdAGURwptXnHGsjjBQUy0sg9oVN8MlobZA6Kw6mhvh+x6JnTuC/B4/netWQWzWimLnUsee4GgaBSgiBH4GaMseRWZ2ajMJLir872N9FhaIPnwjRTeKgSsQ+UPnWl98ZGywYEmUcy6adcZ9ccLFhb6dI6HESyOvxBIL0Zbvc7F8KActM3DxJTZDoiCketB1ETh2urYuJXQ8ZGhMaRZWVvJ/1cYa4sI9Y3dArn03aQEYjfe0QY1jfGayZOx4t2snDVyL/wV/JWAbP2HZt7LC+OYhY+OXJCjpPXdaRB/W2qNR6WQ0UJpB4p5RlcUFsYKc8a02cSbW+4J5MkJvTfV+PnPXkrQVeea0vE7Gh6RFnYluVkNxDq0u5FIy2JF0ak8VUiDOk+uFzwdzAw/QDBH0OyPSoTk=
23 changes: 0 additions & 23 deletions .travis_after_success.sh

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# dropwizard-health
[![Build Status](https://travis-ci.org/dropwizard/dropwizard-health.svg?branch=master)](https://travis-ci.org/dropwizard/dropwizard-health)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.dropwizard.modules/dropwizard-health/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.dropwizard.modules/dropwizard-health/)

Provides a health check implementation that performs ongoing monitoring of an application's dependencies and includes
an endpoint that can be called by a load balancer to determine if the application is healthy and thus able to receive
Expand Down
1 change: 1 addition & 0 deletions ci/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dropwizard.asc
8 changes: 8 additions & 0 deletions ci/after_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e
set -uxo pipefail

if [[ "${TRAVIS_JDK_VERSION}" == "openjdk8" ]]; then
# ./mvnw coveralls:report -B -q
# exit $?
fi
9 changes: 9 additions & 0 deletions ci/deploy-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -uxo pipefail

# Decrypt and import signing key
openssl aes-256-cbc -K $encrypted_da5c7df06829_key -iv $encrypted_da5c7df06829_iv -in ci/dropwizard.asc.enc -out ci/dropwizard.asc -d
gpg --armor --import ci/dropwizard.asc

./mvnw -B deploy --settings 'ci/settings.xml' -DperformRelease=true -Dmaven.test.skip=true
5 changes: 5 additions & 0 deletions ci/deploy-snapshot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e
set -uxo pipefail

./mvnw -B deploy --settings 'ci/settings.xml' -Dmaven.test.skip=true
Binary file added ci/dropwizard.asc.enc
Binary file not shown.
12 changes: 12 additions & 0 deletions ci/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${env.CI_DEPLOY_USERNAME}</username>
<password>${env.CI_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>
21 changes: 0 additions & 21 deletions maven_deploy_settings.xml

This file was deleted.

109 changes: 93 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@

<groupId>io.dropwizard.modules</groupId>
<artifactId>dropwizard-health</artifactId>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
</build>
<version>1.3.11-1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Dropwizard Health</name>
Expand Down Expand Up @@ -80,9 +68,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<dropwizard.version>1.3.10</dropwizard.version>
<wiremock.version>2.20.0</wiremock.version>
<awaitility.version>3.0.0</awaitility.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.showWarnings>true</maven.compiler.showWarnings>
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>

<dropwizard.version>1.3.11</dropwizard.version>
<wiremock.version>2.23.2</wiremock.version>
<awaitility.version>3.1.6</awaitility.version>
</properties>

<dependencyManagement>
Expand All @@ -102,6 +95,12 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-core</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<scope>runtime</scope>
</dependency>

<!-- test dependencies -->
<dependency>
Expand Down Expand Up @@ -133,4 +132,82 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<properties>
<maven.compiler.optimize>true</maven.compiler.optimize>
<gpg.keyname>EDA86E9FB607B5FC9223FB767D4868B53E31E7AD</gpg.keyname>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<doclint>none</doclint>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
<executions>
<execution>
<id>nexus-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 2fa7c6d

Please sign in to comment.