mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-02-26 03:21:50 +01:00
Compile with JDK 14 on Travis and GitHub
This commit is contained in:
parent
23a50776a9
commit
43e59867a6
14
.github/workflows/maven.yml
vendored
14
.github/workflows/maven.yml
vendored
@ -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
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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
11
.github/workflows/settings.xml
vendored
Normal 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>
|
@ -1,10 +1,11 @@
|
||||
sudo: false
|
||||
os: linux
|
||||
|
||||
language: java
|
||||
jdk:
|
||||
- openjdk8
|
||||
- openjdk11
|
||||
- openjdk14
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- '$HOME/.m2/repository'
|
||||
- '$HOME/.m2/repository'
|
Loading…
Reference in New Issue
Block a user