dropbox / dependency-guard

A Gradle plugin that guards against unintentional dependency changes.
Apache License 2.0
390 stars 14 forks source link

Task Input Params, Leverage `project.layout` #76

Open handstandsam opened 1 year ago

handstandsam commented 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.

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.