github: build with JDK 11 and 15 and deploy with JDK 11
This commit is contained in:
parent
38af23024a
commit
3cdbcb9f4a
2 changed files with 14 additions and 13 deletions
23
.github/workflows/maven-build.yml
vendored
23
.github/workflows/maven-build.yml
vendored
|
@ -1,7 +1,4 @@
|
||||||
# This workflow will build a Java project with Maven
|
name: maven-build
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
||||||
|
|
||||||
name: Java CI with Maven
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -12,11 +9,15 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [ 11, 15 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: kamiazya/setup-graphviz@v1
|
||||||
- name: Set up JDK 1.8
|
- uses: actions/checkout@v2
|
||||||
uses: actions/setup-java@v1
|
- name: setup-jdk-${{ matrix.java }}
|
||||||
with:
|
uses: actions/setup-java@v1
|
||||||
java-version: 1.8
|
with:
|
||||||
- name: Build with Maven
|
java-version: ${{ matrix.java }}
|
||||||
run: mvn -B package --file pom.xml
|
- name: build-jar
|
||||||
|
run: mvn -B install
|
||||||
|
|
4
.github/workflows/sonatype-deploy.yml
vendored
4
.github/workflows/sonatype-deploy.yml
vendored
|
@ -9,10 +9,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 11
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package
|
run: mvn -B package
|
||||||
- name: Nexus Repo Publish
|
- name: Nexus Repo Publish
|
||||||
|
|
Loading…
Reference in a new issue