Compile with JDK 14 on Travis and GitHub

This commit is contained in:
GeorgH93 2020-07-28 00:40:46 +02:00
parent 23a50776a9
commit 43e59867a6
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
4 changed files with 29 additions and 7 deletions

View File

@ -15,7 +15,7 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B clean package --file pom.xml
run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml
build-jdk11:
runs-on: ubuntu-latest
steps:
@ -25,4 +25,14 @@ jobs:
with:
java-version: 11
- name: Build with Maven
run: mvn -B clean package --file pom.xml
run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml
build-jdk14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Build with Maven
run: mvn -B -s .github/workflows/settings.xml clean package --file pom.xml

View File

@ -25,7 +25,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B install package --file pom.xml
mvn -B -s .github/workflows/settings.xml install --file pom.xml
cp Minepacks/target/M*.jar artifacts/
- name: Publish to GitHub Packages Apache Maven
@ -35,12 +35,12 @@ jobs:
- name: Build with Maven (Standalone)
run: |
mvn -B clean install package --file pom.xml -P Standalone,ExcludeBadRabbit
mvn -B -s .github/workflows/settings.xml clean install --file pom.xml -P Standalone,ExcludeBadRabbit
mv Minepacks/target/M*-Standalone.jar artifacts/
- name: Build with Maven (Release)
run: |
mvn -B clean package --file pom.xml -P Release
mvn -B -s .github/workflows/settings.xml clean package --file pom.xml -P Release
mv Minepacks/target/M*-Release.jar artifacts/
- name: Upload the artifacts

11
.github/workflows/settings.xml vendored Normal file
View File

@ -0,0 +1,11 @@
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>pcgf-public</id>
<name>PCGF Public</name>
<url>https://repo.pcgamingfreaks.at/repository/maven-public/</url>
<mirrorOf>central,spigot-nexus,spigot-repo,placeholderapi,sonatype-nexus-snapshots,pcgf-repo,herocraftonline-repo,sk89q-repo,CodeMC,mvdw-software</mirrorOf>
</mirror>
</mirrors>
</settings>

View File

@ -1,10 +1,11 @@
sudo: false
os: linux
language: java
jdk:
- openjdk8
- openjdk11
- openjdk14
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.m2/repository'