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:
James Peters 2021-07-12 21:18:13 +01:00
parent 111fd8d4df
commit 1d3ba82e14
3 changed files with 25 additions and 25 deletions

View File

@ -1,10 +1,14 @@
language: java language: java
dist: trusty
before_install: before_install:
- cd BuildTools - cd BuildTools
- jdk_switcher use openjdk8 #- bash build-pre1.17.sh
- bash build-pre1.17.sh - wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- jdk_switcher use openjdk16 - 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 - bash build-1.17+.sh
- cd ../ - cd ../

View File

@ -5,27 +5,27 @@ echo "Checking BuildTools 1.17+ cache"
MAVEN_DIR="$HOME/.m2" MAVEN_DIR="$HOME/.m2"
#CraftBukkit in local repo #CraftBukkit in local repo
CRAFTBUKKIT="${MAVEN_DIR}/repository/org/bukkit/craftbukkit" SPIGOT="${MAVEN_DIR}/repository/org/spigotmc/spigot"
#Versions #Versions
array=("1.17") array=("1.17.1")
#Download BuildTools jar #Download BuildTools jar
curl -s -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar curl -s -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
for i in "${array[@]}" for i in "${array[@]}"
do do
VERSION_DIR="${CRAFTBUKKIT}/${i}-R0.1-SNAPSHOT" VERSION_DIR="${SPIGOT}/${i}-R0.1-SNAPSHOT"
if [ -d "$VERSION_DIR" ]; then 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! " 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." echo "Finished Check."
else else
echo "CraftBukkit version ${i} isn't cached!" echo "Spigot version ${i} isn't cached!"
echo "Running BuildTools!" echo "Running BuildTools!"
java -jar BuildTools.jar --rev ${i} --compile craftbukkit --remapped > /dev/null 2>&1 java -jar BuildTools.jar --rev ${i} --remapped > /dev/null 2>&1
echo "Compiled CraftBukkit ${i}" echo "Compiled Spigot ${i} in ${VERSION_DIR}"
fi fi
done done

View File

@ -10,6 +10,10 @@
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<properties>
<minecraft.version>1.17.1</minecraft.version>
</properties>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging> <packaging>jar</packaging>
<artifactId>ChestsPlusPlus_1_17_R1</artifactId> <artifactId>ChestsPlusPlus_1_17_R1</artifactId>
@ -32,7 +36,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.17-R0.1-SNAPSHOT</version> <version>${minecraft.version}-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -42,18 +46,10 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </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> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId> <artifactId>spigot</artifactId>
<version>1.17-R0.1-SNAPSHOT</version> <version>${minecraft.version}-R0.1-SNAPSHOT</version>
<classifier>remapped-mojang</classifier> <classifier>remapped-mojang</classifier>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
@ -73,9 +69,9 @@
</goals> </goals>
<id>remap-obf</id> <id>remap-obf</id>
<configuration> <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> <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> <remappedArtifactAttached>true</remappedArtifactAttached>
<remappedClassifierName>remapped-obf</remappedClassifierName> <remappedClassifierName>remapped-obf</remappedClassifierName>
</configuration> </configuration>
@ -88,8 +84,8 @@
<id>remap-spigot</id> <id>remap-spigot</id>
<configuration> <configuration>
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf.jar</inputFile> <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> <srgIn>org.spigotmc:minecraft-server:${minecraft.version}-R0.1-SNAPSHOT:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:1.17-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies> <remappedDependencies>org.spigotmc:spigot:${minecraft.version}-R0.1-SNAPSHOT:jar:remapped-obf</remappedDependencies>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>