Rewrite the packaged class path with Micronaut AOT's aot-bytecode #1747
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.72) × (1 − Review Confidence (0.53)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.72 · 1963 lines diff across 42 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.400
Shallow Review Depth
shallow_review_depth
0.289
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
2 items
 Quality Gate passed
Issues
 0 New issues
 0 Accepted issues
Measures
 0 Security Hotspots
 90.5% Coverage on New Code
 0.0% Duplication on New Code
<!-- sqra-placement-anchor -->
See analysis details on SonarQube Cloud
graemerocher
alvarosanchez
Fixes #1739. Maven counterpart of micronaut-projects/micronaut-gradle-plugin#1399.
Adds Micronaut AOT's two class path steps (micronaut-projects/micronaut-aot#524 and #527, released in 3.2.0-M1), both off by default:
What it does:
jarpackaging'spackagephase now runsmn:transform-class-pathbeforeshadeandmn:restore-class-pathafter it. The shaded JAR is built from the rewritten application JAR and dependencies, and the originals are put back afterwards. With both options off, both goals do nothing.mn:dockerpackages the rewritten class path, both through Jib and in the JDK AOT cache flow, so the cache trains on the rewritten JARs.mn:dockerfilewith the default Docker packaging copies the rewritten classes and dependencies.java, which must be 25+. The plugin resolvesmicronaut-aot-bytecodeon demand (micronaut.classPathTransform.versionoverrides it), so it adds nothing to the plugin's own runtime class path.mn:run, tests and native images keep the original class path.Tests: a unit test for the forked launcher, and invoker ITs for the shaded JAR (it contains the generated lambda classes),
mn:dockerfileandmn:docker. Docs: a new "Rewriting the packaged class path" section in the packaging guide.Not measured here: the start-up gains are in the AOT PRs.
🤖 Generated with Claude Code
https://claude.ai/code/session_011mLVeUnH4F6URVapfuGbKk