From 67416625f07fbad8e8e31f824e75766e885a5d2a Mon Sep 17 00:00:00 2001 From: jaime-jmebot <328736951+jaime-jmebot@users.noreply.github.com> Date: Tue, 13 Oct 2026 14:34:55 +0000 Subject: [PATCH] Use separate POM files for core and monkey artifacts --- helper-scripts/project-impl/variables.sh | 2 +- helper-scripts/tests/check-pom-paths.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 helper-scripts/tests/check-pom-paths.py diff --git a/helper-scripts/project-impl/variables.sh b/helper-scripts/project-impl/variables.sh index 552ca87..9e95c04 100644 --- a/helper-scripts/project-impl/variables.sh +++ b/helper-scripts/project-impl/variables.sh @@ -9,7 +9,7 @@ maven_version="3.9.3" maven_bin="./apache-maven-$maven_version/bin/mvn" lib_pomFile="./helper-scripts/project-impl/publishing/jector.pom" -ext_pomFile="./helper-scripts/project-impl/publishing/jector.pom" +ext_pomFile="./helper-scripts/project-impl/publishing/jector-monkey.pom" passphrase="avrsandbox" diff --git a/helper-scripts/tests/check-pom-paths.py b/helper-scripts/tests/check-pom-paths.py new file mode 100644 index 0000000..a6b8fda --- /dev/null +++ b/helper-scripts/tests/check-pom-paths.py @@ -0,0 +1,9 @@ +"""Check publishing metadata paths without signing or publishing anything.""" +from pathlib import Path +import re +variables = (Path(__file__).parents[1] / "project-impl/variables.sh").read_text() +paths = dict(re.findall(r'^(lib_pomFile|ext_pomFile)="([^"]+)"', variables, re.M)) +assert paths["lib_pomFile"] != paths["ext_pomFile"], "Core and extension POMs must not overwrite each other" +assert Path(paths["lib_pomFile"]).name == "jector.pom" +assert Path(paths["ext_pomFile"]).name == "jector-monkey.pom" +print("PASS: distinct core and extension POM paths")