Skip to content

F-041: spike Bazel BUILD generate/check from forma model#172

Merged
stepango merged 1 commit into
v2from
forma/F-041-bazel-spike
Jul 14, 2026
Merged

F-041: spike Bazel BUILD generate/check from forma model#172
stepango merged 1 commit into
v2from
forma/F-041-bazel-spike

Conversation

@stepango

Copy link
Copy Markdown
Collaborator

Summary

  • New top-level bazel-adapter/ pure-Kotlin module depending only on tools.forma:core (composite substitution).
  • Portable FormaProjectModel + JvmBazelAdapter implementing generate (BUILD.bazel text) and check (RestrictionGraph violations).
  • JVM 6-type matrix + jvm-application fixture; unit tests cover labels, impl ↛ impl, illegal edges, round-trip.
  • Example BUILD files + spike results in docs/BAZEL-ADAPTER.md; F-041 marked done.

Verify

  • cd bazel-adapter && ./gradlew test → BUILD SUCCESSFUL
  • cd bazel-adapter && ./gradlew runSample → violations=0
  • cd plugins && ./gradlew :core:test → BUILD SUCCESSFUL

Next

F-042 minimal Bazel sample workspace.

Add top-level bazel-adapter module (tools.forma:core only) with
FormaProjectModel, JvmBazelAdapter generate+check via RestrictionGraph,
jvm-application fixture, unit tests, example BUILD.bazel files, and
spike results docs. Core remains Bazel-free.
@stepango stepango merged commit 585f342 into v2 Jul 14, 2026
8 checks passed
@stepango stepango deleted the forma/F-041-bazel-spike branch July 14, 2026 18:00
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