dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

Please print `build.gradle` paths

Open rjrjr opened this issue 1 year ago • 4 comments

It would be nice if the buildHealth / projectHealth reports posted paths to gradle files, for easier copy / paste into the IDE's Open File field.

common/addons-ui/common/public/build.gradle >> :common:addons-ui:common:public

rjrjr avatar Jan 26 '24 19:01 rjrjr

Thanks for the issue! I don't have time to work on it right now, but I think it might be a relatively simple PR if someone wants to implement it themselves. I will only note that it should support build.gradle and build.gradle.kts paths.

autonomousapps avatar Jan 26 '24 19:01 autonomousapps

Implementation Callout: File paths don't always match Gradle Paths, so a .replace("/", ":") isn't smart enough to handle those cases.

Example: https://stackoverflow.com/a/19303545

include ":logger"
project(":logger").projectDir = file("../the-logger-module-folder")

handstandsam avatar Jan 26 '24 19:01 handstandsam

Folks should be able to use https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#getBuildFile--.

autonomousapps avatar Jan 29 '24 22:01 autonomousapps

This PR solves request for projectHealth (not buildHealth yet) https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/1178

seregamorph avatar Apr 27 '24 19:04 seregamorph