Skip to content

Commit

Permalink
LIBS-564 - Update to Java 11 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hennes-maertins authored and Henrik Adamski committed Nov 14, 2019
1 parent ccb65c3 commit d5a53a3
Show file tree
Hide file tree
Showing 10 changed files with 220 additions and 144 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: nightly

on:
schedule:
- cron: 0 0 * * *

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: setup-java
uses: actions/setup-java@v1
with:
java-version: 11

- uses: actions/checkout@v1

- name: caching
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: compile
run: mvn clean compile test-compile

- name: unit-tests
run: mvn surefire:test

- name: integration-tests
run: mvn jacoco:restore-instrumented-classes failsafe:integration-test failsafe:verify

- name: sonar-analyse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1)
mvn sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io/ \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.organization=${SONAR_ORGANIZATION} \
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \
-Dsonar.java.binaries=./target/classes
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: release

on:
push:
branches:
- master

jobs:
release:
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: setup-java
uses: actions/setup-java@v1
with:
java-version: 11

- name: setup-gpg
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
run: echo ${GPG_PRIVATE_KEY} | base64 --decode | gpg --batch --import

- name: setup-maven-settings
uses: s4u/maven-settings-action@v1
with:
servers: '[{"id": "ossrh", "username": "${OSSRH_USERNAME}", "password": "${OSSRH_PASSWORD}"}, {"id": "github", "username": "x-access-token", "password": "${GITHUB_TOKEN}"}]'
properties: '[{"gpg.executable": "gpg"}, {"gpg.passphrase": "${GPG_PASSPHRASE}"}]'
sonatypeSnapshots: true

- name: checkout
uses: actions/checkout@v1

- name: caching
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: sonar-analyse
run: |
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1)
mvn clean verify sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io/ \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.organization=${SONAR_ORGANIZATION} \
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \
-Dsonar.java.binaries=./target/classes
- name: deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: mvn deploy
51 changes: 51 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: review

on:
pull_request:
types: [opened, synchronize]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: setup-java
uses: actions/setup-java@v1
with:
java-version: 11

- name: checkout
uses: actions/checkout@v1

- name: caching
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

- name: compile
run: mvn clean compile test-compile

- name: unit-tests
run: mvn surefire:test

- name: integration-tests
run: mvn jacoco:restore-instrumented-classes failsafe:integration-test failsafe:verify

- name: sonar-analyse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export GITHUB_PULL_REQUEST=$(cut -d / -f 3 <(echo ${GITHUB_REF}))
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1)
mvn sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io/ \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.organization=${SONAR_ORGANIZATION} \
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \
-Dsonar.pullrequest.key=${GITHUB_PULL_REQUEST} \
-Dsonar.java.binaries=./target/classes
- name: pom-analyse
run: mvn enforcer:enforce
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

83 changes: 0 additions & 83 deletions Jenkinsfile

This file was deleted.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# sax-xom-parser

[![Maven Central](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/com/avides/xml/sax-xom-parser/maven-metadata.xml.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.avides.xml%22%20AND%20a%3A%22sax-xom-parser%22)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/742e793231bd406eba2befe532e5a3c1)](https://www.codacy.com/app/avides-builds/sax-xom-parser)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/742e793231bd406eba2befe532e5a3c1)](https://www.codacy.com/app/avides-builds/sax-xom-parser)
[![Build Status](https://travis-ci.com/avides/sax-xom-parser.svg?branch=master)](https://travis-ci.com/avides/sax-xom-parser)
[![Build](https://github.com/avides/sax-xom-parser/workflows/release/badge.svg)](https://github.com/avides/sax-xom-parser/actions)
[![Nightly build](https://github.com/avides/sax-xom-parser/workflows/nightly/badge.svg)](https://github.com/avides/sax-xom-parser/actions)
[![Coverage report](https://sonarcloud.io/api/project_badges/measure?project=avides_sax-xom-parser&metric=coverage)](https://sonarcloud.io/dashboard?id=avides_sax-xom-parser)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=avides_sax-xom-parser&metric=alert_status)](https://sonarcloud.io/dashboard?id=avides_sax-xom-parser)
[![Technical dept](https://sonarcloud.io/api/project_badges/measure?project=avides_sax-xom-parser&metric=sqale_index)](https://sonarcloud.io/dashboard?id=avides_sax-xom-parser)

XML-streaming-parser with [XOM](http://www.xom.nu/ "XOM")-support

Expand All @@ -12,6 +14,6 @@ XML-streaming-parser with [XOM](http://www.xom.nu/ "XOM")-support
<dependency>
<groupId>com.avides.xml</groupId>
<artifactId>sax-xom-parser</artifactId>
<version>1.0.0-RELEASE</version>
<version>2.0.0</version>
</dependency>
```
Loading

0 comments on commit d5a53a3

Please sign in to comment.