Skip to content

Commit

Permalink
Merge branch 'master' into feat/wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Oct 16, 2024
2 parents 313811c + 0a7fea8 commit 357ea18
Show file tree
Hide file tree
Showing 90 changed files with 1,261 additions and 511 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ body:
options:
- label: I am using the official english version of Slimefun and did not modify the jar.
required: true
- label: I downloaded the official version from the new build site [Blob Builds](https://blob.build/).
required: true
- label: I am using an up to date "DEV" (not "RC") version of Slimefun.
required: true
- label: I am aware that issues related to Slimefun addons need to be reported on their bug trackers and not here.
Expand Down
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
37 changes: 37 additions & 0 deletions .github/workflows/javadocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Javadocs

on:
push:
paths:
- 'src/**'
- 'pom.xml'

permissions:
contents: read

jobs:
build:
name: Maven build
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build Javadocs
run: mvn javadoc:javadoc
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/.idea/
/.vscode/
/data-storage/
/javadocs/

dependency-reduced-pom.xml

Expand Down
7 changes: 4 additions & 3 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
before_install:
- sdk install java 17.0.1-open
- sdk use java 17.0.1-open
- sdk install java 21.0.2-open
- sdk use java 21.0.2-open
- sdk install maven

jdk:
- openjdk17
- openjdk21
48 changes: 27 additions & 21 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,11 +238,11 @@
<!-- 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>
<destDir>docs</destDir>
<destDir>javadocs</destDir>

<doctitle>Slimefun4 - Javadocs</doctitle>
<windowtitle>Slimefun4 - Javadocs</windowtitle>
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>e99d02a8ff</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 357ea18

Please sign in to comment.