is there a gradle way to filter this? ``` ./gradle...
# community-support
c
is there a gradle way to filter this?
Copy code
./gradlew dependencies --write-locks --scan | grep -e FAILED -e https
v
Filter what? Do you mean getting whether the build failed and what the scan url is?
c
that doesn't get whether the build failed, it tells me which dependencies failed and prints the scan url
the important thing here is I need to know which dependencies failed
v
Ah, I see, one moment.
c
even better if it gave me the dependency insight, perhaps reduced, but which project it came from
For the dependencies, you are after the
ResolutionResult
API: https://docs.gradle.org/current/userguide/dependency_resolution.html#sec:programmatic_api
👍 1
c
will the 2nd one replace the existing output by virtue of being implemented? or do I have to write something that acts exactly as dependencies does?
v
Oh, you want the output of dependencies, just filtered? Maybe your can configure the renderer of
dependencies
, I don't remember. Otherwise yeah, you would probably reprogram what that task does, which basically should be to get that instance and iterating over the tree
c
hmm... grep sounds easier 😉
by 10,000x
v
If you want to just filter the output, probably
c
having a makefile on top of gradle... yay...