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
{{ message }}
Repository navigation
Support Gradle 7.0's type-safe project accessors in auto-correct #52
changed the title [-]Support Gradle 7.0's type-safe project accessors in auto-correct[/-][+]Support Gradle 7.0's type-safe project accessors in auto-correct and sorting[/+]on Mar 23, 2021
changed the title [-]Support Gradle 7.0's type-safe project accessors in auto-correct and sorting[/-][+]Support Gradle 7.0's type-safe project accessors in auto-correct[/+]on Oct 26, 2021
ModuleCheck always knows the traditional, non-type-safe path. From here, it's easy to determine what the string value for the type-safe accessor would be.
:core becomes core
:core:jvm becomes core.jvm
:core-testing becomes coreTesting
:base:ui:navigation becomes base.ui.navigation
Because we can figure out the type-safe version, we're able to look for type-safe versions inside the dependency blocks. So, removing or modifying an existing type-safe reference works.
This was surprisingly working well for me when I tried. The main benefit of this tool is to find what can be removed so it is ok if adding part does not work :D
Activity
[-]Support Gradle 7.0's type-safe project accessors in auto-correct[/-][+]Support Gradle 7.0's type-safe project accessors in auto-correct and sorting[/+][-]Support Gradle 7.0's type-safe project accessors in auto-correct and sorting[/-][+]Support Gradle 7.0's type-safe project accessors in auto-correct[/+]RBusarow commentedon Feb 24, 2022
This is currently partially working.
ModuleCheck always knows the traditional, non-type-safe path. From here, it's easy to determine what the string value for the type-safe accessor would be.
:corebecomescore:core:jvmbecomescore.jvm:core-testingbecomescoreTesting:base:ui:navigationbecomesbase.ui.navigationBecause we can figure out the type-safe version, we're able to look for type-safe versions inside the dependency blocks. So, removing or modifying an existing type-safe reference works.
Adding type-safe accessors is not working.
tasomaniac commentedon Mar 9, 2022
This was surprisingly working well for me when I tried. The main benefit of this tool is to find what can be removed so it is ok if
addingpart does not work :Duse type-safe accessor "path" when adding a dependency with type-safe…
use type-safe accessor "path" when adding a dependency with type-safe…