mirror of
https://github.com/BenCodez/VotingPlugin.git
synced 2026-11-15 21:46:01 -05:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d4c0c0d80 | ||
|
|
1853ae9a9a | ||
|
|
2626f5fd7a | ||
|
|
2648605372 | ||
|
|
f7ed14fe75 | ||
|
|
59685dc7ba | ||
|
|
7aea7cd6f6 |
No files matched your search
@@ -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>
|
||||
|
||||
+7
@@ -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"));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user