Hello everyone, I would like to know, foe each dep...
# plugin-development
e
Hello everyone, I would like to know, foe each dependency in a project for instance, what repository it comes from. Is it possible to get this information from gradle (even internal APIs are fine with me)?
n
You can probably get this most easily in a build scan. Run your build with
--scan
.
e
Thanks! I know I can get it in a build scan but I need programmatic access to this information, sorry I wasn't clear earlier. Necessary for some tooling improvement / analytics I am interested in
v
Well, if the build scan can get the information, there should be some way to get the information programmatically, at least by using some internal API. 🤷‍♂️
t
a --refresh-dependencies should force it to download fresh so you see it all in the network tab under performance right?
v
In the build scan it is either way present if you go to the info for a library
👍 1
e
@TrevJonez I need programmatic access. You're right @Vampire. Do you have an idea or hypothesis where I should start looking?
v
Decompile and deobfuscate the Gradle enterprise plugin 😄
😂 2
Other than that, no, no idea
they have an open api spec published for each version
v
He does not want to get the info from the build scan, but from within the build
2
The point was, that if the enterprise plugin can get the information to send it to the build scan, there must be some way to access the information, even if it is internal
e
Yup, rolling up my sleeves seems I'll need to go digging
t
oh yeah on that end probably stuck with having to reverse eng it. You might also look to see if there is an OSS sbom generating plugins you can learn from
👍🏾 1
e
Thanks for the suggestions every one
👌 1