Open handstandsam opened 1 year ago
A few values are derived from project.layout and used as inputs to our tasks. @ZacSweers called out that it is possible to pass the entire project.layout value as it is config cache safe.
project.layout
Example: https://github.com/dropbox/dependency-guard/blob/189182a7fa586f28d652dd3dc2dd17f67ada8403/dependency-guard/src/main/kotlin/com/dropbox/gradle/plugins/dependencyguard/internal/utils/OutputFileUtils.kt#L13
Other usages: https://github.com/dropbox/dependency-guard/search?q=project.layout
It was also suggested that we could avoid passing project.path and leveraging that property from the project.layout variable.
project.path
A few values are derived from
project.layout
and used as inputs to our tasks. @ZacSweers called out that it is possible to pass the entireproject.layout
value as it is config cache safe.Example: https://github.com/dropbox/dependency-guard/blob/189182a7fa586f28d652dd3dc2dd17f67ada8403/dependency-guard/src/main/kotlin/com/dropbox/gradle/plugins/dependencyguard/internal/utils/OutputFileUtils.kt#L13
Other usages: https://github.com/dropbox/dependency-guard/search?q=project.layout
It was also suggested that we could avoid passing
project.path
and leveraging that property from theproject.layout
variable.