|
| 1 | +# IKE workspace version-upgrade ruleset. |
| 2 | +# |
| 3 | +# Read by `ws:versions-upgrade-draft` (workspace scope) and |
| 4 | +# `ike:versions-upgrade-draft` (single-module scope) to decide which |
| 5 | +# coordinates may be upgraded, which are pinned, and which are |
| 6 | +# explicitly blocked. The corresponding `-publish` goals consume the |
| 7 | +# generated plan; this file controls only the planning step. |
| 8 | +# |
| 9 | +# Shipped as a tracked scaffold template by `ike-build-standards`. |
| 10 | +# Edit freely — the next `ike:scaffold-publish` records the on-disk |
| 11 | +# hash in `.ike/scaffold.lock`, detects user edits on subsequent |
| 12 | +# runs, and leaves them in place. Divergence from the shipped |
| 13 | +# template is surfaced as a unified diff in `ike:scaffold-draft` |
| 14 | +# output so you can merge upstream changes when ready. |
| 15 | +# |
| 16 | +# Schema reference: see `VersionUpgradeRulesReader` in |
| 17 | +# `network.ike.workspace`. |
| 18 | + |
| 19 | +schema-version: "1.0" |
| 20 | + |
| 21 | +# Coordinates with no matching rule fall through to default-action. |
| 22 | +# `block` is the safe default — unknown coordinates are never |
| 23 | +# silently upgraded just because a newer release happens to exist. |
| 24 | +default-action: block |
| 25 | + |
| 26 | +# Rules are evaluated in declaration order; the first match wins. |
| 27 | +# `match` syntax: "groupIdPattern:artifactIdPattern", with `*` as |
| 28 | +# a wildcard. A bare pattern with no `:` matches the groupId only, |
| 29 | +# with `*` for artifactId — so `network.ike.*` is shorthand for |
| 30 | +# `network.ike.*:*`. |
| 31 | +rules: |
| 32 | + |
| 33 | + # ── IKE-owned coordinates ──────────────────────────────────────── |
| 34 | + # Track the latest released version of every IKE artifact — |
| 35 | + # ike-tooling, ike-docs, ike-platform, ike-lab, etc. The |
| 36 | + # candidate resolver only proposes non-SNAPSHOT releases. |
| 37 | + - match: "network.ike.*" |
| 38 | + action: allow |
| 39 | + |
| 40 | + # ── Common test dependencies ───────────────────────────────────── |
| 41 | + - match: "org.junit.jupiter:*" |
| 42 | + action: allow |
| 43 | + - match: "org.assertj:assertj-core" |
| 44 | + action: allow |
| 45 | + |
| 46 | + # ── Examples (uncomment and adapt as needed) ───────────────────── |
| 47 | + # |
| 48 | + # Pin a coordinate at a known-good version regardless of what |
| 49 | + # the resolver discovers. Useful for libraries with breaking |
| 50 | + # changes you have not yet adopted. |
| 51 | + # |
| 52 | + # - match: "com.example:frozen-lib" |
| 53 | + # action: pin |
| 54 | + # version: "1.2.3" |
| 55 | + # |
| 56 | + # Explicitly block with a reason. The reason surfaces in the |
| 57 | + # generated plan so future readers understand why the |
| 58 | + # coordinate is held back. |
| 59 | + # |
| 60 | + # - match: "com.example:broken-lib" |
| 61 | + # action: block |
| 62 | + # reason: "Known to fail integration tests on Java 25" |
0 commit comments