From cda5933a2c5c1fe250991cf0e08728b14e8f3bc1 Mon Sep 17 00:00:00 2001 From: Catarina Gamboa <52540187+CatarinaGamboa@users.noreply.github.com> Date: Wed, 30 Sep 2026 21:35:15 +0100 Subject: [PATCH] Update in-repo api dependency when releasing the api ./release.sh api only bumped liquidjava-api/pom.xml, leaving the verifier and example on the previous api version until someone edited them by hand. The release commit now bumps both dependents too. Co-Authored-By: Claude Opus 5.5 --- release.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 1395a60f..7da9637b 100755 --- a/release.sh +++ b/release.sh @@ -93,8 +93,17 @@ if git diff --quiet -- "$POM"; then exit 1 fi +RELEASE_FILES=("$POM") + +# keep in-repo modules on the api version being released +if [ "$MODULE" = "api" ]; then + DEPENDENT_POMS=(liquidjava-verifier/pom.xml liquidjava-example/pom.xml) + perl -0pi -e "s#(liquidjava-api\\s*)[^<]+()#\${1}$VERSION\${2}#" "${DEPENDENT_POMS[@]}" + RELEASE_FILES+=("${DEPENDENT_POMS[@]}") +fi + # publish release tag -git add "$POM" +git add "${RELEASE_FILES[@]}" git commit -m "Release $MODULE_DIR $VERSION" git tag "$TAG"