libby icon indicating copy to clipboard operation
libby copied to clipboard

Auto download dependency of dependency

Open MrAxeTv opened this issue 2 years ago • 5 comments

Hi I am not sure is this right place for suggestion. But for example I encounter with small problem loading this lib https://mvnrepository.com/artifact/dev.triumphteam/triumph-gui Thing is that triumph-gui has dependencies which have there own dependencies so I needed to add another 9 dependencies to make it work image would it be possible to add option to read pom file if loaded lib has any dependencies and import them to automatically if they are available at maven central?

MrAxeTv avatar Jul 31 '23 15:07 MrAxeTv

This is possible to retrieve all transitive dependencies (dependency of dependency), and add into LibraryManager automatically.

For example you can use aether for that purpose. Here is code snippet: https://github.com/patching/aether-demo/blob/master/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/ResolveTransitiveDependencies.java

Maybe we can create another module for transitive dependency resolve?

bivashy avatar Aug 02 '23 16:08 bivashy

I will check it out will see what I can do

MrAxeTv avatar Aug 02 '23 17:08 MrAxeTv

I'm waiting for this too, it would be great if it could impl.

Ghost-chu avatar Jan 03 '24 19:01 Ghost-chu

In the 2.0.0 beta available on the gradle branch there is the possibility to make Libby download transitive dependencies for a library using Library.Builder#resolveTransitiveDependencies(boolean).

frengor avatar Jan 04 '24 15:01 frengor

In the 2.0.0 beta available on the gradle branch there is the possibility to make Libby download transitive dependencies for a library using Library.Builder#resolveTransitiveDependencies(boolean).

It works, thank you for mention it! 10/10

Ghost-chu avatar Jan 04 '24 15:01 Ghost-chu