Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/maven/nms/1_14/org.apache.maven…
Browse files Browse the repository at this point in the history
….surefire-surefire-junit-platform-3.5.0
  • Loading branch information
stefvanschie authored Nov 18, 2024
2 parents 692b6bc + 187261a commit 482acc6
Show file tree
Hide file tree
Showing 67 changed files with 4,273 additions and 159 deletions.
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ updates:
schedule:
interval: "daily"
- package-ecosystem: "maven"
directory: "/nms/1_21"
directory: "/nms/1_21_0"
schedule:
interval: "daily"
- package-ecosystem: "maven"
directory: "/nms/1_21_1"
schedule:
interval: "daily"
- package-ecosystem: "maven"
directory: "/nms/1_21_2-3"
schedule:
interval: "daily"
- package-ecosystem: "maven"
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
mvn paper-nms:init -pl nms/1_20_1
mvn paper-nms:init -pl nms/1_20_2
mvn paper-nms:init -pl nms/1_20_3-4
- name: 'Run BuildTools 1.20.5-1.20.6, 1.21.1'
- name: 'Run BuildTools 1.20.5-1.20.6, 1.21'
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true'
run: |
mkdir -p build
Expand Down Expand Up @@ -105,7 +105,27 @@ jobs:
java -jar BuildTools.jar --remapped --disable-java-check --dont-update
java -jar BuildTools.jar --rev 1.20.6 --remapped --disable-java-check
cd Bukkit
git checkout 2ec53f498e32b3af989cb24672fc54dfab087154
cd ..
cd CraftBukkit
git checkout 8ee6fd1b8db9896590aa321d0199453de1fc35db
cd ..
cd Spigot
git checkout fb8fb722a327a2f9f097f2ded700ac5de8157408
cd ..
cd BuildData
git checkout ae1e7b1e31cd3a3892bb05a6ccdcecc48c73c455
cd ..
java -jar BuildTools.jar --remapped --disable-java-check --dont-update
java -jar BuildTools.jar --rev 1.21.1 --remapped --disable-java-check
java -jar BuildTools.jar --rev 1.21.3 --remapped --disable-java-check
cd ../
- name: Setup GPG keys
run: cat <(echo -e "${{ secrets.GPG_KEY }}") | gpg --batch --import
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
mvn paper-nms:init -pl nms/1_20_1
mvn paper-nms:init -pl nms/1_20_2
mvn paper-nms:init -pl nms/1_20_3-4
- name: 'Run BuildTools 1.20.5-1.20.6, 1.21.1'
- name: 'Run BuildTools 1.20.5-1.20.6, 1.21'
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true'
run: |
mkdir -p build
Expand Down Expand Up @@ -111,7 +111,27 @@ jobs:
java -jar BuildTools.jar --remapped --disable-java-check --dont-update
java -jar BuildTools.jar --rev 1.20.6 --remapped --disable-java-check
cd Bukkit
git checkout 2ec53f498e32b3af989cb24672fc54dfab087154
cd ..
cd CraftBukkit
git checkout 8ee6fd1b8db9896590aa321d0199453de1fc35db
cd ..
cd Spigot
git checkout fb8fb722a327a2f9f097f2ded700ac5de8157408
cd ..
cd BuildData
git checkout ae1e7b1e31cd3a3892bb05a6ccdcecc48c73c455
cd ..
java -jar BuildTools.jar --remapped --disable-java-check --dont-update
java -jar BuildTools.jar --rev 1.21.1 --remapped --disable-java-check
java -jar BuildTools.jar --rev 1.21.3 --remapped --disable-java-check
cd ../
- name: Build with Maven
run: mvn -B package --file pom.xml
26 changes: 19 additions & 7 deletions IF/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>IF-parent</artifactId>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<version>0.10.17</version>
<version>0.10.18</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -169,7 +169,19 @@
</dependency>
<dependency>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<artifactId>1_21</artifactId>
<artifactId>1_21_0</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<artifactId>1_21_1</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.stefvanschie.inventoryframework</groupId>
<artifactId>1_21_2-3</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
Expand Down Expand Up @@ -220,7 +232,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.2</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -244,7 +256,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<version>3.2.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -267,12 +279,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<version>3.5.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform </artifactId>
<version>3.2.5</version>
<version>3.5.2</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -316,7 +328,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<version>3.10.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,33 @@ public enum Version {
V1_20_6,

/**
* Version 1.21
* Version 1.21.0
*
* @since 0.10.15
* @since 0.10.18
*/
V1_21;
V1_21_0,

/**
* Version 1.21.1
*
* @since 0.10.18
*/
V1_21_1,

/**
* Version 1.21.2 - 1.21.3
*
* @since 0.10.18
*/
V1_21_2_3;

/**
* A collection of versions on which modern smithing tables are available.
*/
private static final Collection<Version> MODERN_SMITHING_TABLE_VERSIONS = EnumSet.of(
V1_19_4,
V1_20_0, V1_20_1, V1_20_2, V1_20_3_4, V1_20_5, V1_20_6,
V1_21
V1_21_0, V1_21_1, V1_21_2_3
);

/**
Expand All @@ -192,6 +206,14 @@ public enum Version {
V1_19_0, V1_19_1, V1_19_2, V1_19_3, V1_19_4
);

/**
* A collection of versions on which {@link InventoryView} is an interface.
*/
@NotNull
private static final Collection<@NotNull Version> INTERFACE_INVENTORY_VIEW = EnumSet.of(
V1_21_0, V1_21_1, V1_21_2_3
);

/**
* Checks whether the {@link InventoryView} class is an interface on this version.
*
Expand All @@ -200,7 +222,7 @@ public enum Version {
*/
@Contract(pure = true)
public boolean isInventoryViewInterface() {
return this == Version.V1_21;
return INTERFACE_INVENTORY_VIEW.contains(this);
}

/**
Expand Down Expand Up @@ -289,8 +311,12 @@ public static Version getVersion() {
case "1.20.6":
return V1_20_6;
case "1.21":
return V1_21_0;
case "1.21.1":
return V1_21;
return V1_21_1;
case "1.21.2":
case "1.21.3":
return V1_21_2_3;
default:
throw new UnsupportedVersionException("The server version provided is not supported");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.AnvilInventoryImpl.class);
ANVIL_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.AnvilInventoryImpl.class);

BEACON_INVENTORIES = new EnumMap<>(Version.class);
BEACON_INVENTORIES.put(Version.V1_14,
Expand Down Expand Up @@ -363,8 +367,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.BeaconInventoryImpl.class);
BEACON_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.BeaconInventoryImpl.class);

CARTOGRAPHY_TABLE_INVENTORIES = new EnumMap<>(Version.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_14,
Expand Down Expand Up @@ -409,8 +417,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.CartographyTableInventoryImpl.class);
CARTOGRAPHY_TABLE_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.CartographyTableInventoryImpl.class);

ENCHANTING_TABLE_INVENTORIES = new EnumMap<>(Version.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_14,
Expand Down Expand Up @@ -455,8 +467,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.EnchantingTableInventoryImpl.class);
ENCHANTING_TABLE_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.EnchantingTableInventoryImpl.class);

GRINDSTONE_INVENTORIES = new EnumMap<>(Version.class);
GRINDSTONE_INVENTORIES.put(Version.V1_14,
Expand Down Expand Up @@ -501,8 +517,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.GrindstoneInventoryImpl.class);
GRINDSTONE_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.GrindstoneInventoryImpl.class);

MERCHANT_INVENTORIES = new EnumMap<>(Version.class);
MERCHANT_INVENTORIES.put(Version.V1_14,
Expand Down Expand Up @@ -547,8 +567,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.MerchantInventoryImpl.class);
MERCHANT_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.MerchantInventoryImpl.class);

SMITHING_TABLE_INVENTORIES = new EnumMap<>(Version.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_19_4,
Expand All @@ -565,8 +589,12 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.SmithingTableInventoryImpl.class);
SMITHING_TABLE_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.SmithingTableInventoryImpl.class);

LEGACY_SMITHING_TABLE_INVENTORIES = new EnumMap<>(Version.class);
LEGACY_SMITHING_TABLE_INVENTORIES.put(Version.V1_16_1,
Expand Down Expand Up @@ -639,7 +667,11 @@ public static StonecutterInventory newStonecutterInventory(@NotNull Version vers
com.github.stefvanschie.inventoryframework.nms.v1_20_5.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_20_6,
com.github.stefvanschie.inventoryframework.nms.v1_20_6.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_21,
com.github.stefvanschie.inventoryframework.nms.v1_21.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_21_0,
com.github.stefvanschie.inventoryframework.nms.v1_21_0.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_21_1,
com.github.stefvanschie.inventoryframework.nms.v1_21_1.StonecutterInventoryImpl.class);
STONECUTTER_INVENTORIES.put(Version.V1_21_2_3,
com.github.stefvanschie.inventoryframework.nms.v1_21_2_3.StonecutterInventoryImpl.class);
}
}
Loading

0 comments on commit 482acc6

Please sign in to comment.