You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm focused to module A and add (or merge) new module B to settings-all.gradle, gradle doesn't know module B when gradle sync and I have to call focus task again to generate new focus.settings.gradle.
Would it be possible that focus recognize during gradle sync that settings-all.gradle was changed and regenerate focus.settings.gradle automatically so I don't need to call focus task again?
The text was updated successfully, but these errors were encountered:
"Gradle sync" is an IDE process, not a gradle process. I don't know of a way to trigger Gradle tasks when a sync happens without some separate IDE plugin.
We could, theoretically, make the createFocusSettings task an early task and make the focusSettingsFile an input of it so that it runs any time the focus settings file changes, but that's already too late in the process, because the createFocusSettings task would require that all possible projects are configured so that it can load their dependencies, and the existing focus settings file will prevent that from happening.
As it stands I don't see a way to resolve this due to the chicken and egg nature of configuration vs. task execution phases.
When I'm focused to module A and add (or merge) new module B to settings-all.gradle, gradle doesn't know module B when gradle sync and I have to call focus task again to generate new focus.settings.gradle.
Would it be possible that focus recognize during gradle sync that settings-all.gradle was changed and regenerate focus.settings.gradle automatically so I don't need to call focus task again?
The text was updated successfully, but these errors were encountered: