Fix repositories, no need to build NMS anymore

This commit is contained in:
James Peters 2023-06-09 20:22:26 +01:00
parent 68acfa2c5c
commit b2a8f2bba3
4 changed files with 29 additions and 87 deletions

View File

@ -20,67 +20,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Cache BuildTools
id: cache-buildtools
uses: actions/cache@v2
with:
path: |
~/.m2
~/BuildTools
key: buildtools-cache-${{ hashFiles('**/spigot-*.jar') }}
- name: Check BuildTools cached
run: |
mkdir -p ~/BuildTools
ls ~/BuildTools
shell: bash
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: '16'
distribution: 'adopt'
- name: Run BuildTools 1.17
working-directory: BuildTools
run: |
cd ~/BuildTools
# make file runnable, might not be necessary
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
# run script
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh
shell: bash
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v2
with: with:
java-version: '17' java-version: '17'
distribution: 'adopt' distribution: 'adopt'
- name: Run BuildTools 1.18+
working-directory: BuildTools
run: |
cd ~/BuildTools
# make file runnable, might not be necessary
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh"
# run script
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh
shell: bash
- name: Check BuildTools cached
run: |
mkdir -p ~/BuildTools
ls ~/BuildTools
shell: bash
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
# - name: Check Folders
# run: |
# ls -R
# shell: bash
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1

View File

@ -4,7 +4,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.jamesdpeters.minecraft.chests</groupId> <groupId>com.jamesdpeters.minecraft.chests</groupId>
<artifactId>ChestsPlusPlus-Parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>ChestsPlusPlus-Master</artifactId> <artifactId>ChestsPlusPlus-Master</artifactId>
<version>2.9-Release</version> <version>2.9-Release</version>
@ -20,38 +25,6 @@
<tag>@{project.version}</tag> <tag>@{project.version}</tag>
</scm> </scm>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/nexus/repository/public/</url>
</repository>
<repository>
<id>CodeMC</id>
<url>https://repo.codemc.org/repository/maven-public</url>
</repository>
<!-- <repository>-->
<!-- <id>sytm-nexus</id>-->
<!-- <url>https://repo.sytm.de/repository/maven-hosted/</url>-->
<!-- </repository>-->
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
</repository>
</repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>maven-snapshots</id> <id>maven-snapshots</id>
@ -89,7 +62,7 @@
<dependency> <dependency>
<groupId>net.wesjd</groupId> <groupId>net.wesjd</groupId>
<artifactId>AnvilGUI</artifactId> <artifactId>anvilgui</artifactId>
<version>1.6.6-SNAPSHOT</version> <version>1.6.6-SNAPSHOT</version>
</dependency> </dependency>

View File

@ -1,4 +1,4 @@
# Chests++ Language File (Version 2.8-Release) # Chests++ Language File (Version 2.9-Release)
# NOTE: This file gets replaced when the plugin launches! If you want to make modifications create a copy first! # NOTE: This file gets replaced when the plugin launches! If you want to make modifications create a copy first!
# To create a new language file simply create a copy of this file and rename it to your desired choice for example 'en_US.properties' # To create a new language file simply create a copy of this file and rename it to your desired choice for example 'en_US.properties'
# It should be located in the 'lang' folder # It should be located in the 'lang' folder

21
pom.xml
View File

@ -27,10 +27,31 @@
</modules> </modules>
<repositories> <repositories>
<repository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
<snapshots/>
</repository>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
<repository>
<id>nms-repo</id>
<url>https://repo.codemc.io/repository/nms/</url>
</repository>
<repository> <repository>
<id>spigot-repo</id> <id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository> </repository>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/nexus/repository/public/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories> </repositories>
</project> </project>