Drop JDK 8 Support (#172)

* github/build: verify javadoc validity

* github/build: stop testing against JDK 8

* github/build: test against JDK 16 and 17-ea

Drop testing against JDK 15

* github/deploy: remove graphviz

* github.deploy: nexus username is not a secret

* github/settings: nexus username is not a secret

* github/deploy: publish javadoc

To: https://kemitix.github.io/wiser-assertions/

* github/build: upgrade setup-java action to 2.1.0

* github/deploy: upgrade setup-java action to 2.1.0
This commit is contained in:
Paul Campbell 2021-08-06 10:42:50 +01:00 committed by GitHub
parent b1c16cabc1
commit ac18fbb2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 8 deletions

View file

@ -3,12 +3,12 @@
<servers> <servers>
<server> <server>
<id>sonatype-nexus-snapshots</id> <id>sonatype-nexus-snapshots</id>
<username>${env.NEXUS_USERNAME}</username> <username>kemitix</username>
<password>${env.NEXUS_PASSWORD}</password> <password>${env.NEXUS_PASSWORD}</password>
</server> </server>
<server> <server>
<id>sonatype-nexus-staging</id> <id>sonatype-nexus-staging</id>
<username>${env.NEXUS_USERNAME}</username> <username>kemitix</username>
<password>${env.NEXUS_PASSWORD}</password> <password>${env.NEXUS_PASSWORD}</password>
</server> </server>
</servers> </servers>

View file

@ -11,13 +11,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
java: [ 8, 11, 15 ] java: [ 11, 16, 17-ea ]
steps: steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: setup-jdk-${{ matrix.java }} - name: setup-jdk-${{ matrix.java }}
uses: actions/setup-java@v1 uses: actions/setup-java@v2.1.0
with: with:
distribution: adopt
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
- name: build-jar - name: build-jar
run: mvn -B install run: mvn -B install
- name: verify javadoc
run: mvn -P release javadoc:javadoc

View file

@ -9,11 +9,11 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v1 uses: actions/setup-java@v2.1.0
with: with:
distribution: adopt
java-version: 8 java-version: 8
- name: Build with Maven - name: Build with Maven
run: mvn -B install run: mvn -B install
@ -34,7 +34,11 @@ jobs:
-B \ -B \
deploy deploy
env: env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish Javadoc
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: target/apidocs # The folder the action should deploy.