-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tests are now much more complete. ReflectionUtils Fixed an issue with 1.17 NMSExtras Added support for 1.18 and fixed a small issue for 1.17
- Loading branch information
1 parent
949beeb
commit 7477ef5
Showing
16 changed files
with
399 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ $RECYCLE.BIN/ | |
ChangeLog.txt | ||
*.iml | ||
.idea/ | ||
.gradle/ | ||
target/ | ||
repo/ | ||
out/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
<groupId>com.github.cryptomorin</groupId> | ||
<artifactId>XSeries</artifactId> | ||
<version>8.5.0</version> | ||
<version>8.5.0.1</version> | ||
|
||
<name>XSeries</name> | ||
<description>A set of utilities for Minecraft plugins</description> | ||
|
@@ -61,11 +61,15 @@ | |
</repository> | ||
</repositories> | ||
|
||
<properties> | ||
<spigotVersion>1.18-rc3-R0.1-SNAPSHOT</spigotVersion> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot</artifactId> | ||
<version>1.17.1-R0.1-SNAPSHOT</version> | ||
<version>1.18-rc3-R0.1-SNAPSHOT</version> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
CryptoMorin
Author
Owner
|
||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
|
@@ -98,7 +102,7 @@ | |
<configuration> | ||
<!--all,-missing--> | ||
<doclint>none</doclint> | ||
<source>8</source> | ||
<release>8</release> | ||
<excludePackageNames>com.cryptomorin.xseries.unused:com.cryptomorin.xseries.particles</excludePackageNames> | ||
<!-- Apparently this is needed because it's a bug with maven JavaDoc plugin not being able to find the exe by itself. --> | ||
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> | ||
|
@@ -174,15 +178,15 @@ | |
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.0.0-M5</version> | ||
<configuration> | ||
<!--<failIfNoTests>true</failIfNoTests>--> | ||
<trimStackTrace>false</trimStackTrace> | ||
<workingDirectory>${basedir}/target/tests</workingDirectory> | ||
<!-- <dependenciesToScan>--> | ||
<!-- <dependency>*:spigot:*:*:1.16.5-R0.1-SNAPSHOT</dependency>--> | ||
<!-- </dependenciesToScan>--> | ||
<includes> | ||
<include>**/Spigot*.java</include> | ||
<include>**/DummySpigot.java</include> | ||
</includes> | ||
<excludes> | ||
<exclude>com/cryptomorin/xseries/unused/</exclude> | ||
<exclude>com/cryptomorin/xseries/XMaterialUtil.java</exclude> | ||
<exclude>com/cryptomorin/xseries/SkullCacheListener.java</exclude> | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
|
@@ -191,62 +195,31 @@ | |
<testResources> | ||
<testResource> | ||
<directory>src/test/resources</directory> | ||
<filtering>true</filtering> | ||
</testResource> | ||
</testResources> | ||
</build> | ||
|
||
<profiles> | ||
<profile> | ||
<id>1_18</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>17</source> | ||
<target>17</target> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>default-testCompile</id> | ||
<phase>test-compile</phase> | ||
<goals> | ||
<goal>testCompile</goal> | ||
</goals> | ||
<configuration> | ||
<skip>false</skip> | ||
<!-- <testExcludes>--> | ||
<!-- <exclude>**/**1_18.java</exclude>--> | ||
<!-- </testExcludes>--> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<id>tester</id> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot</artifactId> | ||
<!-- For some reasons codemc's 1.18 doesn't include NMS --> | ||
<version>1.17.1-R0.1-SNAPSHOT</version> | ||
<scope>compile</scope> | ||
<version>${spigotVersion}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
<profile> | ||
<id>1_16R2</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>8</source> | ||
<target>8</target> | ||
<source>17</source> | ||
<target>17</target> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
|
@@ -257,23 +230,37 @@ | |
</goals> | ||
<configuration> | ||
<skip>false</skip> | ||
<testExcludes> | ||
<exclude>**/**1_16R3.java</exclude> | ||
</testExcludes> | ||
<testIncludes> | ||
<include>*/**DummySpigot.java</include> | ||
</testIncludes> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.spigotmc</groupId> | ||
<artifactId>spigot</artifactId> | ||
<version>1.16.3-R0.1-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</profile> | ||
<profile> | ||
<id>18</id> | ||
<properties> | ||
<nms>18_R1</nms> | ||
<spigotVersion>1.18-rc3-R0.1-SNAPSHOT</spigotVersion> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>17</id> | ||
<properties> | ||
<nms>17_R1</nms> | ||
<spigotVersion>1.17.1-R0.1-SNAPSHOT</spigotVersion> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<!-- Doens't seem to work. I can't find a way to compile with one dependency and test with another --> | ||
<id>16</id> | ||
<properties> | ||
<nms>16_R3</nms> | ||
<spigotVersion>1.16.5-R0.1-SNAPSHOT</spigotVersion> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I guess you should use
1.18-R0.1-SNAPSHOT
version which is the newest for 1.18, here;