From ad86d835ca1fb7ab3be5453726080b6460c06993 Mon Sep 17 00:00:00 2001 From: Ryan Barlow <7389646+ryanbarlow97@users.noreply.github.com> Date: Tue, 22 Sep 2026 22:42:37 +0000 Subject: [PATCH] build: standardize lowercase plugin artifacts --- .github/scripts/plugin-artifact.py | 4 ++-- pom.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/plugin-artifact.py b/.github/scripts/plugin-artifact.py index 587ca45..c730186 100644 --- a/.github/scripts/plugin-artifact.py +++ b/.github/scripts/plugin-artifact.py @@ -15,8 +15,8 @@ def validate(source, version): target = Path.cwd().resolve() / "target" if not source.is_relative_to(target) or not source.is_file(): raise ValueError("Expected the Maven runtime JAR inside target/") - if not source.name.endswith(f"-{version}.jar"): - raise ValueError("Runtime JAR filename must end with the Maven version") + if not re.fullmatch(r"[a-z][a-z0-9]*-" + re.escape(version) + r"\.jar", source.name): + raise ValueError("Runtime JAR filename must use a lowercase alphanumeric name followed by the Maven version") with zipfile.ZipFile(source) as jar: descriptors = {"plugin.yml", "paper-plugin.yml"}.intersection(jar.namelist()) if not descriptors: diff --git a/pom.xml b/pom.xml index d0f7c4e..6b2c0bf 100755 --- a/pom.xml +++ b/pom.xml @@ -203,6 +203,7 @@ + coreprotect-${project.version} src/main/java