mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-12-29 04:28:11 +01:00
Update .travis.yml
Update .travis.yml Update .travis.yml Update .travis.yml Fixed BuildTools error Update .travis.yml Update .travis.yml Update .travis.yml Update .travis.yml Update .travis.yml Update .travis.yml Update .travis.yml Fix BuildTools Update .travis.yml Update .travis.yml Fix BuildTools
This commit is contained in:
parent
111fd8d4df
commit
1d3ba82e14
10
.travis.yml
10
.travis.yml
@ -1,10 +1,14 @@
|
||||
language: java
|
||||
dist: trusty
|
||||
|
||||
before_install:
|
||||
- cd BuildTools
|
||||
- jdk_switcher use openjdk8
|
||||
- bash build-pre1.17.sh
|
||||
- jdk_switcher use openjdk16
|
||||
#- bash build-pre1.17.sh
|
||||
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
|
||||
- chmod +x $TRAVIS_BUILD_DIR/BuildTools/install-jdk.sh
|
||||
- export JAVA_HOME=$HOME/openjdk16
|
||||
- $TRAVIS_BUILD_DIR/BuildTools/install-jdk.sh -F 16 --target $JAVA_HOME
|
||||
- export PATH=$JAVA_HOME/bin:$PATH
|
||||
- bash build-1.17+.sh
|
||||
- cd ../
|
||||
|
||||
|
@ -5,27 +5,27 @@ echo "Checking BuildTools 1.17+ cache"
|
||||
MAVEN_DIR="$HOME/.m2"
|
||||
|
||||
#CraftBukkit in local repo
|
||||
CRAFTBUKKIT="${MAVEN_DIR}/repository/org/bukkit/craftbukkit"
|
||||
SPIGOT="${MAVEN_DIR}/repository/org/spigotmc/spigot"
|
||||
|
||||
#Versions
|
||||
array=("1.17")
|
||||
array=("1.17.1")
|
||||
|
||||
#Download BuildTools jar
|
||||
curl -s -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
|
||||
for i in "${array[@]}"
|
||||
do
|
||||
VERSION_DIR="${CRAFTBUKKIT}/${i}-R0.1-SNAPSHOT"
|
||||
VERSION_DIR="${SPIGOT}/${i}-R0.1-SNAPSHOT"
|
||||
|
||||
if [ -d "$VERSION_DIR" ]; then
|
||||
echo "CraftBukkit version ${i} is cached!"
|
||||
echo "Spigot version ${i} is cached in ${VERSION_DIR}!"
|
||||
echo "Checking for latest commit! "
|
||||
java -jar BuildTools.jar --rev ${i} --compile craftbukkit --compile-if-changed --remapped > /dev/null 2>&1
|
||||
java -jar BuildTools.jar --rev ${i} --compile-if-changed --remapped > /dev/null 2>&1
|
||||
echo "Finished Check."
|
||||
else
|
||||
echo "CraftBukkit version ${i} isn't cached!"
|
||||
echo "Spigot version ${i} isn't cached!"
|
||||
echo "Running BuildTools!"
|
||||
java -jar BuildTools.jar --rev ${i} --compile craftbukkit --remapped > /dev/null 2>&1
|
||||
echo "Compiled CraftBukkit ${i}"
|
||||
java -jar BuildTools.jar --rev ${i} --remapped > /dev/null 2>&1
|
||||
echo "Compiled Spigot ${i} in ${VERSION_DIR}"
|
||||
fi
|
||||
done
|
||||
|
@ -10,6 +10,10 @@
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<minecraft.version>1.17.1</minecraft.version>
|
||||
</properties>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>ChestsPlusPlus_1_17_R1</artifactId>
|
||||
@ -32,7 +36,7 @@
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.17-R0.1-SNAPSHOT</version>
|
||||
<version>${minecraft.version}-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -42,18 +46,10 @@
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>craftbukkit</artifactId>
|
||||
<version>1.17-R0.1-SNAPSHOT</version>
|
||||
<classifier>remapped-mojang</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>1.17-R0.1-SNAPSHOT</version>
|
||||
<version>${minecraft.version}-R0.1-SNAPSHOT</version>
|
||||
<classifier>remapped-mojang</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
@ -73,9 +69,9 @@
|
||||
</goals>
|
||||
<id>remap-obf</id>
|
||||
<configuration>
|
||||
<srgIn>org.spigotmc:minecraft-server:1.17-R0.1-SNAPSHOT:txt:maps-mojang</srgIn>
|
||||
<srgIn>org.spigotmc:minecraft-server:${minecraft.version}-R0.1-SNAPSHOT:txt:maps-mojang</srgIn>
|
||||
<reverse>true</reverse>
|
||||
<remappedDependencies>org.spigotmc:spigot:1.17-R0.1-SNAPSHOT:jar:remapped-mojang</remappedDependencies>
|
||||
<remappedDependencies>org.spigotmc:spigot:${minecraft.version}-R0.1-SNAPSHOT:jar:remapped-mojang</remappedDependencies>
|
||||
<remappedArtifactAttached>true</remappedArtifactAttached>
|
||||
<remappedClassifierName>remapped-obf</remappedClassifierName>
|
||||
</configuration>
|
||||
@ -88,8 +84,8 @@
|
||||
<id>remap-spigot</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile>
|
||||
<srgIn>org.spigotmc:minecraft-server:1.17-R0.1-SNAPSHOT:csrg:maps-spigot</srgIn>
|
||||
<remappedDependencies>org.spigotmc:spigot:1.17-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies>
|
||||
<srgIn>org.spigotmc:minecraft-server:${minecraft.version}-R0.1-SNAPSHOT:csrg:maps-spigot</srgIn>
|
||||
<remappedDependencies>org.spigotmc:spigot:${minecraft.version}-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
Loading…
Reference in New Issue
Block a user