Drop the legacy handling of a pack's own iris-builtins.jar

Nothing is released, so packs get no compatibility path: a pack that
still holds its own iris-builtins.jar fails to load naming both jars
(IrisApi), instead of being skipped with a warning. The missing
built-ins warning no longer suggests copying the jar into a pack, which
would now collide with the bundled one; it says to build the plugin.
This commit is contained in:
piexel committed 2026-10-22 09:59:51 +02:00
1 parent 72c3d662c1
commit bc7f9127b5
4 files changed
+4 -15

No files matched your search

@@ -35,12 +35,11 @@ public class MissingBuiltInModulesTest {
private static final File PACK = new File("packs", "overworld");
@Test
public void aPackWithNoModulesIsToldWhichJarToCopyWhere() {
public void aPackWithNoModulesIsToldHowToGetThem() {
String warning = MissingBuiltInModules.warning(PACK, List.of()).orElseThrow();
assertTrue(warning, warning.startsWith("Pack overworld loads without the built-in modules (iris-builtins.jar)"));
assertTrue(warning, warning.contains("does not bundle iris-builtins.jar; use a complete build, or copy the jar into "
+ new File(PACK, "modules").getPath() + "."));
assertTrue(warning, warning.endsWith("does not bundle iris-builtins.jar; build the plugin with ./gradlew iris."));
}
@Test
@@ -74,7 +74,7 @@ public class PackModuleSetTest {
String warnings = warningsWhile(() -> new PackModuleSet(pack, Gson::new).pack());
assertTrue(warnings, warnings.contains("[Iris/WARN] Pack without-builtins loads without the built-in modules (iris-builtins.jar)"));
assertTrue(warnings, warnings.contains("copy the jar into " + new File(pack, "modules").getPath()));
assertTrue(warnings, warnings.contains("build the plugin with ./gradlew iris."));
}
@Test