Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions codex-nms/codex-nms-v26_2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<properties>
<java.version>21</java.version>
<nms.jdk>25</nms.jdk>
</properties>

<dependencies>
Expand Down
1 change: 1 addition & 0 deletions codex-nms/codex-nms-v26_3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<properties>
<java.version>21</java.version>
<nms.jdk>25</nms.jdk>
</properties>

<dependencies>
Expand Down
23 changes: 23 additions & 0 deletions codex-nms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
<name>CodexNMS</name>
<description>A collection of NMS libraries for Codex</description>

<properties>
<!-- JDK each NMS module compiles with, through a Maven toolchain (see the jdkToolchain below).
Since JDK 22, javac also reads type annotations from the Spigot jars and then fails on
classes they reference that aren't on the classpath (e.g. datafixerupper), so the older
versions compile on 21. The 26.x modules override this with 25, because those Spigot
jars are Java 25 class files. -->
<nms.jdk>21</nms.jdk>
</properties>

<modules>
<module>codex-nms-v1_16_5</module>
<module>codex-nms-v1_17_1</module>
Expand Down Expand Up @@ -56,6 +65,20 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<jdkToolchain>
<version>${nms.jdk}</version>
</jdkToolchain>
</configuration>
</plugin>
</plugins>
</build>

<licenses>
<license>
<name>MIT License</name>
Expand Down
Loading