jbang icon indicating copy to clipboard operation
jbang copied to clipboard

GAV list / dependency tree for a script

Open cdhermann opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

JBang offers commands to retrieve a list dependencies; e.g. jbang info tools <appfile.java>, jbang --verbose

Using these approaches, the full path of dependencies in the file system is exposed. When having to share dependency information for troubleshooting it would be convenient to be able to share such information without revealing details on the host system.

For automated comparison a simple list is a good option. For human understanding a tree structure can be advantageous.

Describe the solution you'd like

jbang info dependencies <appfile.java> defaults to a tree representing the dependencies (GAV); no path information

E.g.

\--- io.quarkus:quarkus-resteasy:2.8.0.Final
     +--- io.quarkus:quarkus-vertx-http:2.8.0.Final
     |    +--- io.quarkus:quarkus-core:2.8.0.Final

jbang info dependencies --list <appfile.java> outputs a simple list with each GAV line by line; no path information

E.g.

io.quarkus:quarkus-resteasy:2.8.0.Final
io.quarkus:quarkus-vertx-http:2.8.0.Final
io.quarkus:quarkus-core:2.8.0.Final

Describe alternatives you've considered

  1. open script in IDE
  2. launch terminal in IDE
  3. show dependencies using Gradle

Additional context

see https://github.com/quarkusio/quarkus/issues/24926

open question: compileClasspath, runtimeClasspath, testCompileClasspath, testRuntimeClasspath, all?

cdhermann avatar Apr 15 '22 08:04 cdhermann

Salve chi mi aiuta a fare istallazione per eliminare tutti gli errori mi piacerebbe iniziare senza impazzire non o molta esperienza magari collegadosi insieme vi ringrazierei cerco aiuto

sbk1978 avatar Nov 25 '23 17:11 sbk1978

Hi,

My Italian is not Strong. What errors are you having?

maxandersen avatar Nov 25 '23 20:11 maxandersen