Skip to content

Fix IllegalStateException when plugin is applied in pluginManagement#1018

Merged
bgalek merged 1 commit into
mainfrom
includeBuild-fix
May 12, 2026
Merged

Fix IllegalStateException when plugin is applied in pluginManagement#1018
bgalek merged 1 commit into
mainfrom
includeBuild-fix

Conversation

@bgalek

@bgalek bgalek commented May 12, 2026

Copy link
Copy Markdown
Member

Wrap the rootGradle.rootProject access in a try/catch. When the root project is not yet available, fall back to project.rootProject.layout.projectDirectory — the local included build's own root, which is always available at this stage.

@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.59%. Comparing base (2035137) to head (70f1edc).

Files with missing lines Patch % Lines
...egro/tech/build/axion/release/ReleasePlugin.groovy 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1018      +/-   ##
============================================
- Coverage     59.69%   59.59%   -0.10%     
  Complexity      451      451              
============================================
  Files            84       84              
  Lines          1841     1844       +3     
  Branches        149      149              
============================================
  Hits           1099     1099              
- Misses          683      686       +3     
  Partials         59       59              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bgalek bgalek merged commit aeed686 into main May 12, 2026
18 checks passed
@bgalek bgalek deleted the includeBuild-fix branch May 12, 2026 21:52
bgalek added a commit that referenced this pull request Jun 15, 2026
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