Compare commits

...
3 changed files with 19 additions and 0 deletions

No files matched your search

+4
View File
@@ -249,6 +249,10 @@
<!-- AdvancedCore and SimpleAPI also embed these classes. -->
<exclude>org/slf4j/**</exclude>
<exclude>org/checkerframework/**</exclude>
<!-- Compile-time-only JSpecify classes are not required by the runtime. -->
<exclude>org/jspecify/**</exclude>
<!-- The final universal plugin is not a multi-release JAR. -->
<exclude>META-INF/versions/**</exclude>
<exclude>META-INF/services/org.slf4j.spi.SLF4JServiceProvider</exclude>
<!-- Keep non-POM runtime metadata such as sqlite-jdbc's VERSION fallback. -->
<exclude>META-INF/maven/**/pom.xml</exclude>
@@ -43,6 +43,13 @@ public class PackagedArtifactTest {
"sqlite-jdbc must retain its runtime version fallback");
assertNull(artifact.getEntry("net/neoforged/neoforge/common/NeoForge.class"));
assertFalse(artifact.stream().anyMatch(entry -> entry.getName().startsWith("org/checkerframework/")));
assertFalse(artifact.stream().anyMatch(entry -> entry.getName().startsWith("org/jspecify/")),
"The final plugin should not ship compile-time JSpecify annotations");
assertNotNull(artifact.getManifest(), "The universal plugin must retain its manifest");
assertFalse("true".equalsIgnoreCase(artifact.getManifest().getMainAttributes()
.getValue("Multi-Release")), "Do not strip versioned payload from a multi-release JAR");
assertFalse(artifact.stream().anyMatch(entry -> entry.getName().startsWith("META-INF/versions/")),
"Versioned entries are unreachable in the non-multi-release distribution");
assertNull(artifact.getEntry("org/slf4j/Logger.class"));
assertNull(artifact.getEntry("com/bencodez/votingplugin/slf4j/Logger.class"));
assertNull(artifact.getEntry("META-INF/services/org.slf4j.spi.SLF4JServiceProvider"));
+8
View File
@@ -17,6 +17,14 @@ rejects duplicate Rhino, raw Hikari/Folia, external crypto providers, uncommon
SQLite native targets, and Checker Framework annotations. It creates both
server and client TLS identities from the packaged JDK-only implementation.
The universal plugin JAR is not a multi-release archive. Shade inputs are
filtered to omit `META-INF/versions/**` entries that are never selected
without a `Multi-Release: true` manifest; package tests enforce this
contract. Compile-time-only `org/jspecify/**` annotations are also omitted,
but real service descriptors, platform entry points, relocated Rhino,
database drivers, and the common Linux SQLite native remain packaged.
These are small conservative optimizations, not removal of supported features.
SQLite keeps the Linux x86_64 native in the plugin for offline startup on the
common server platform. When SQLite is selected on another supported target,
VotingPlugin downloads the pinned `sqlite-jdbc` 3.53.4.0 artifact, verifies its