Skip to content

feat(java): route facade SpotBugs through a mise verb - #36

Merged
CMaintz merged 1 commit into
mainfrom
feat/java-spotbugs-verb
Sep 29, 2026
Merged

CMaintz merged 1 commit into
mainfrom
feat/java-spotbugs-verb

Conversation

@CMaintz

@CMaintz CMaintz commented Sep 29, 2026

Copy link
Copy Markdown
Owner

The facade's opt-in SpotBugs job ran ./gradlew ${{ inputs.spotbugs_task }} in working_directory — which breaks for a root-Gradle monorepo (no gradlew in the package dir; jobbuddy's backend is ../gradlew :backend:...).

Route it through a spotbugs mise task, exactly like novar already works: the workflow calls mise run spotbugs, and the consumer's mise.toml decides the Gradle call.

  • mise/java.toml gains [tasks.spotbugs] = ./gradlew spotbugsMain (the single-project default).
  • A monorepo package overrides it (../gradlew :backend:spotbugsMain).
  • spotbugs stays auxiliary — not one of the six contract verbs, not in gate.
  • Removes the now-unused spotbugs_task facade input (no consumer sets it).

Unblocks migrating jobbuddy's backend to consume gate.yml@v2 with spotbugs: true.

…s` verb

The facade's opt-in SpotBugs job ran `./gradlew ${{ inputs.spotbugs_task }}` directly
in working_directory — which breaks for a root-Gradle monorepo (no gradlew in the
package dir). Route it through a `spotbugs` mise task instead, exactly like `novar`:
the workflow calls `mise run spotbugs`, and the consumer's mise.toml decides the Gradle
call. The java template defaults it to `./gradlew spotbugsMain`; a monorepo package
overrides it (`../gradlew :backend:spotbugsMain`).

`spotbugs` stays auxiliary — NOT one of the six contract verbs and not in `gate`.
Removes the now-unused `spotbugs_task` facade input (no consumer sets it).
@CMaintz
CMaintz merged commit da9e39c into main Sep 29, 2026
4 checks passed
@CMaintz
CMaintz deleted the feat/java-spotbugs-verb branch September 30, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant