fix: resolve Gradle configuration cache incompatibility in PluginBuilder#1065
fix: resolve Gradle configuration cache incompatibility in PluginBuilder#1065Daniel-ADFA merged 2 commits intostagefrom
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@plugin-api/plugin-builder/src/main/kotlin/com/itsaky/androidide/plugins/build/PluginBuilder.kt`:
- Around line 27-30: The task captures
extension.pluginName.getOrElse(project.name) at configuration time (stored in
pluginName) which eagerly materializes the Property and breaks
configuration-cache; move resolution into the task action by passing the
Extension instance (or accessing the task's extension) inside the doLast/execute
block and call extension.pluginName.getOrElse(project.name) there, instead of
using the captured pluginName variable; similarly defer any use of
apkDir/outputDir that depends on pluginName by computing paths inside the action
so PluginBuilder's task action reads properties lazily.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 73bb60b3-dda5-4c91-9608-a9e14a66252a
📒 Files selected for processing (1)
plugin-api/plugin-builder/src/main/kotlin/com/itsaky/androidide/plugins/build/PluginBuilder.kt
No description provided.