From 2be6d6f50f5b3a81a6babda0e194201589af1fab Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Wed, 3 Jun 2026 19:39:34 -0400 Subject: [PATCH 1/2] Match Spotless POM self-closing style to `maven-release-plugin` output. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `maven-release-plugin` re-serializes POMs with the spaced self-closing form (``) during `release:prepare`, but Spotless's `sortPom` enforced the spaceless form (``). Every release commit was therefore Spotless-dirty on the root POM. Pre-wala/ML#349 this was harmless (artifactId-prefixed tags failed the semver deploy gate and skipped deploy); after #349 pinned plain `X.Y.Z` tags, the tag-push `build` job fails at `spotless:check` and silently skips the deploy — 0.47.0 had to be deployed manually. Set `sortPom`'s `spaceBeforeCloseEmptyElement=true` so Spotless enforces the same spaced form the release plugin emits. Release commits are now clean from the start, with no post-release `spotless:apply` or manual deploy. Only POMs adopt the spaced form; the summary XMLs (`tensorflow.xml`, etc.) stay spaceless via the separate `replaceRegex` step (wala/ML#535), since nothing rewrites them. This was not, as wala/ML#351 assumed, the same conflict #351 addressed: POMs are already excluded from #351's `replaceRegex`. The POM conflict is `sortPom`'s. Fixes wala/ML#566. Co-Authored-By: Claude Opus 4.8 (1M context) --- pom.xml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 2f46f9a88..c19d6b065 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ both ./logging.properties 0.8.14 - + 4.13.2 @@ -228,8 +228,8 @@ IDE/ jython3/ - - + + @@ -239,8 +239,8 @@ **/target/ - - + + true 4 @@ -251,7 +251,7 @@ **/*.xml **/.pydevproject - + **/plugin.xml **/pom.xml @@ -280,8 +280,8 @@ [ \t]+/> /> - - + + @@ -289,12 +289,23 @@ 1.27.0 true - - + + false + + true From 391b36b6d06b3b9a7980fa7c30039c0e18e96f57 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Wed, 3 Jun 2026 19:50:55 -0400 Subject: [PATCH 2/2] Update stale self-closing-tag comment for the POM spaced-form change. The `replaceRegex` comment claimed the spaceless form matches the POM sortpom style and `maven-release-plugin` output. With this PR, POMs use the spaced form; the spaceless rule applies only to the summary XMLs. Flagged by Copilot. Co-Authored-By: Claude Opus 4.8 (1M context) --- pom.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index c19d6b065..13df6b78d 100644 --- a/pom.xml +++ b/pom.xml @@ -269,12 +269,15 @@ + (``) for the summary XMLs (this format excludes POMs, + above). The Eclipse WTP XML formatter has no pref that controls + this; without explicit enforcement, `tensorflow.xml` drifts to + ~2135 spaced vs 5 spaceless. See + https://github.com/wala/ML/issues/535. POMs deliberately use + the *spaced* form instead — via sortPom's + `spaceBeforeCloseEmptyElement` — to match the + `maven-release-plugin`'s output; see + https://github.com/wala/ML/issues/566. --> Spaceless self-closing tags [ \t]+/>