Skip to content

Commit

Permalink
Update to 1.20.5 (#4186)
Browse files Browse the repository at this point in the history
**This build should be considered experimental for now**

* Update to 1.20.5
* Keep old isMinecraftVersion func
* Update src/main/java/io/github/thebusybiscuit/slimefun4/utils/compatibility/VersionedEnchantment.java
Co-authored-by: J3fftw <[email protected]>

* Update mockbukkit
* Update Junit and maven plugin versions, update mockbukkit to latest for 1.20.6
* Refactor AbstractLocateRegexCheck to detect and return null if the locale file only contains the null delimiter
* Refactor to use a permission check in the TestGuideCommand
* Fix TestBiomeMapCompatibility failing due to JsonUtils neeeding Slimefun to be loaded, add biome json for 1.20.5+
* Refactor versioned classes to use the Registry api
* Mark the paper-api dependency in the provided scope
* Check if getBasePotionType can be used before using it
* Revert "Refactor versioned classes to use the Registry api"
This reverts commit b529c34.

* Refactor VersionedEntityType and VersionedEnchantment to use the registry api
* Mark the paper-api dependency in the test scope, update comment
* Refactor MinecraftVersion to include a range of minor patches which a MinecraftVersion targets
* Make tests pass and update to dough pr
* Update CI
* Update dough and move fireworkutils to registry
* Update dough to HEAD
* chore: various changes to 1.20.5 branch (#4240)
* fix: fix isBefore, also added unit tests
* chore: comments
* chore: simplify
* chore: use == for enum comparison
* chore: retrigger ci
* chore(ci): e2e on more versions
* Update src/test/java/io/github/thebusybiscuit/slimefun4/core/services/localization/TestColorCodes.java

Co-authored-by: JustAHuman-xD <[email protected]>

* Update src/main/java/io/github/thebusybiscuit/slimefun4/api/MinecraftVersion.java
Co-authored-by: ybw0014 <[email protected]>

---------

Co-authored-by: J3fftw <[email protected]>
Co-authored-by: Andrew Wong <[email protected]>
Co-authored-by: ybw0014 <[email protected]>
Co-authored-by: JustAHuman-xD <[email protected]>
  • Loading branch information
5 people authored Sep 13, 2024
1 parent 17d01d7 commit 4e46546
Show file tree
Hide file tree
Showing 60 changed files with 952 additions and 333 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/discord-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]

- name: Set up Java JDK 17
- name: Set up Java JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
javaVersion: '18'
- mcVersion: '1.19.4'
javaVersion: '19'
- mcVersion: 'latest'
- mcVersion: '1.20.4'
javaVersion: '20'
- mcVersion: '1.20.6'
javaVersion: '21'
#- mcVersion: 'latest'
# javaVersion: '21'

steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/javadocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-version: '21'
java-package: jdk
architecture: x64

Expand Down
46 changes: 26 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
<!-- Target Java 16 -->
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<!-- Run tests using java 21 -->
<maven.compiler.testSource>21</maven.compiler.testSource>
<maven.compiler.testTarget>21</maven.compiler.testTarget>

<!-- Spigot properties -->
<spigot.version>1.20.4</spigot.version>
<spigot.version>1.20.6</spigot.version>
<spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs>

<!-- Default settings for sonarcloud.io -->
Expand Down Expand Up @@ -115,7 +118,7 @@
<!-- Compiler plugin -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<version>3.13.0</version>

<configuration>
<excludes>
Expand All @@ -130,7 +133,7 @@
<!-- Attach sources -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<version>3.3.1</version>

<executions>
<execution>
Expand All @@ -146,7 +149,7 @@
<!-- Plugin for Unit Tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<version>3.3.1</version>

<configuration>
<junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
Expand Down Expand Up @@ -235,7 +238,7 @@
<!-- Javadocs -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<version>3.7.0</version>

<configuration>
<reportOutputDirectory>${project.basedir}</reportOutputDirectory>
Expand Down Expand Up @@ -329,9 +332,19 @@
</resources>
</build>

<dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- Development dependencies -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand All @@ -344,7 +357,7 @@
<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<artifactId>dough-api</artifactId>
<version>baf2d79f62</version>
<version>f8ff25187d</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -358,7 +371,6 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -375,9 +387,9 @@
</dependency>
<!-- This needs to be before Spigot because MockBukkit will fail otherwise. -->
<dependency>
<groupId>com.github.seeseemelk</groupId>
<artifactId>MockBukkit-v1.20</artifactId>
<version>3.65.0</version>
<groupId>com.github.MockBukkit</groupId>
<artifactId>MockBukkit</artifactId>
<version>c7cc678834</version>
<scope>test</scope>

<exclusions>
Expand All @@ -387,19 +399,13 @@
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
</exclusion>
<exclusion>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Override MockBukkit's Paper to a pinned slightly older version -->
<!-- This is because MockBukkit currently fails after this PR: -->
<!-- https://github.com/PaperMC/Paper/pull/9629 -->
<!-- Override Spigot with Paper tests as a CommandMap ctor which MockBukkit uses only exists on Paper but not in Spigot -->
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.4-R0.1-20240205.114523-90</version>
<version>1.20.6-R0.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>

Expand Down
Loading

0 comments on commit 4e46546

Please sign in to comment.