jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.43k stars 159 forks source link

GAV list / dependency tree for a script #1334

Open cdhermann opened 2 years ago

cdhermann commented 2 years ago

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?

sbk1978 commented 11 months ago

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

maxandersen commented 11 months ago

Hi,

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