Use Java 8 for Spigot, Java 11 for others (CI)
This commit is contained in:
parent
28cff3ed43
commit
1fe367a96c
1 changed files with 4 additions and 0 deletions
|
@ -2,13 +2,17 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2/repository/org/
|
- $HOME/.m2/repository/org/
|
||||||
before_install: | # Wget BuildTools and run if cached folder not found
|
before_install: | # Wget BuildTools and run if cached folder not found
|
||||||
|
jdk_switcher use oraclejdk8
|
||||||
if [ ! -d "$HOME/.m2/repository/org/spigotmc/spigot/1.12.2-R0.1-SNAPSHOT" ]; then
|
if [ ! -d "$HOME/.m2/repository/org/spigotmc/spigot/1.12.2-R0.1-SNAPSHOT" ]; then
|
||||||
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||||
# grep so that download counts don't appear in log files
|
# grep so that download counts don't appear in log files
|
||||||
java -jar BuildTools.jar --rev 1.12.2 | grep -vE "[^/ ]*/[^/ ]*\s*KB\s*$" | grep -v "^\s*$"
|
java -jar BuildTools.jar --rev 1.12.2 | grep -vE "[^/ ]*/[^/ ]*\s*KB\s*$" | grep -v "^\s*$"
|
||||||
fi
|
fi
|
||||||
|
export JAVA_HOME=$HOME/openjdk11
|
||||||
|
$TRAVIS_BUILD_DIR/install-jdk.sh --install openjdk11 --target $JAVA_HOME
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
|
- oraclejdk8
|
||||||
- oraclejdk11
|
- oraclejdk11
|
||||||
sudo: true
|
sudo: true
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Loading…
Reference in a new issue