Build against latest Paper API and local MobArena; fix CI JDK/artifact upload
build / build (push) Successful in 3m31s
build / build (push) Successful in 3m31s
This commit is contained in:
@@ -19,13 +19,19 @@ jobs:
|
|||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: '11'
|
java-version: '25'
|
||||||
|
|
||||||
|
- name: Checkout MobArena
|
||||||
|
run: git clone --depth 1 https://git.tss3.us/skywalker3200/MobArena.git ../MobArena
|
||||||
|
|
||||||
|
- name: Publish MobArena to local Maven repo
|
||||||
|
run: cd ../MobArena && ./gradlew publishToMavenLocal --no-daemon
|
||||||
|
|
||||||
- name: Build, test, package
|
- name: Build, test, package
|
||||||
run: ./mvnw -B package --file pom.xml
|
run: ./mvnw -B package --file pom.xml
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: MobArenaStats.jar
|
name: MobArenaStats.jar
|
||||||
path: target/MobArenaStats.jar
|
path: target/MobArenaStats.jar
|
||||||
|
|||||||
@@ -34,19 +34,19 @@
|
|||||||
<version>2.2.1</version>
|
<version>2.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- https://hub.spigotmc.org/nexus/content/groups/public/org/spigotmc/spigot-api/ -->
|
<!-- https://repo.papermc.io/repository/maven-public/io/papermc/paper/paper-api/ -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>1.17-R0.1-SNAPSHOT</version>
|
<version>26.2.build.84-stable</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- https://jitpack.io/#garbagemule/MobArena -->
|
<!-- Built and installed locally from F:\skywalker3200\MobArena via `./gradlew publishToMavenLocal` -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.garbagemule</groupId>
|
<groupId>com.garbagemule</groupId>
|
||||||
<artifactId>MobArena</artifactId>
|
<artifactId>MobArena</artifactId>
|
||||||
<version>b99713f1</version>
|
<version>0.109.1-tss3</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@@ -133,13 +133,8 @@
|
|||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>spigot-repo</id>
|
<id>papermc</id>
|
||||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
<url>https://repo.papermc.io/repository/maven-public/</url>
|
||||||
</repository>
|
|
||||||
|
|
||||||
<repository>
|
|
||||||
<id>jitpack.io</id>
|
|
||||||
<url>https://jitpack.io</url>
|
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
@@ -157,8 +152,7 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>11</source>
|
<release>25</release>
|
||||||
<target>11</target>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
@@ -171,7 +165,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
<version>3.2.4</version>
|
<version>3.6.2</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>package</phase>
|
<phase>package</phase>
|
||||||
|
|||||||
Reference in New Issue
Block a user