From c65705b6211ef8ede9b9e872b99283046539d0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Werner=20Fouch=C3=A9?= Date: Wed, 10 Dec 2025 19:15:04 +0200 Subject: [PATCH 1/2] chore(deps): updated dependencies for deps.java --- deps.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps.java b/deps.java index 86276c2..a360698 100644 --- a/deps.java +++ b/deps.java @@ -4,10 +4,10 @@ //DEPS com.fasterxml.jackson.core:jackson-databind:2.20.1 //DEPS info.picocli:picocli:4.7.7 -//DEPS eu.maveniverse.maven.plugins:toolbox:0.11.4 +//DEPS eu.maveniverse.maven.plugins:toolbox:0.14.7 //DEPS org.apache.maven:maven-plugin-api:3.9.11 -//DEPS org.apache.maven:maven-settings:3.9.10 -//DEPS eu.maveniverse.maven.mima.runtime:standalone-static:2.4.36 +//DEPS org.apache.maven:maven-settings:3.9.11 +//DEPS eu.maveniverse.maven.mima.runtime:standalone-static:2.4.37 //DEPS org.slf4j:slf4j-simple:2.0.17 From e0993a721997c032db9ca5c89df5d192f3fabdd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Werner=20Fouch=C3=A9?= Date: Fri, 6 Mar 2026 23:19:03 +0200 Subject: [PATCH 2/2] Update dependencies --- deps.java | 49 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/deps.java b/deps.java index a360698..82bee0a 100644 --- a/deps.java +++ b/deps.java @@ -1,14 +1,30 @@ ///usr/bin/env jbang "$0" "$@" ; exit $? +// http://mvnrepository.com/artifact/dev.jbang/jash //DEPS dev.jbang:jash:0.0.3 -//DEPS com.fasterxml.jackson.core:jackson-databind:2.20.1 + +// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind +//DEPS com.fasterxml.jackson.core:jackson-databind:2.21.1 + +// https://mvnrepository.com/artifact/info.picocli/picocli //DEPS info.picocli:picocli:4.7.7 -//DEPS eu.maveniverse.maven.plugins:toolbox:0.14.7 -//DEPS org.apache.maven:maven-plugin-api:3.9.11 -//DEPS org.apache.maven:maven-settings:3.9.11 -//DEPS eu.maveniverse.maven.mima.runtime:standalone-static:2.4.37 +// https://mvnrepository.com/artifact/eu.maveniverse.maven.plugins/toolbox +//DEPS eu.maveniverse.maven.plugins:toolbox:0.15.4 + +// https://mvnrepository.com/artifact/org.apache.maven/maven-plugin-api +//DEPS org.apache.maven:maven-plugin-api:3.9.13 + +// https://mvnrepository.com/artifact/org.apache.maven/maven-settings +//DEPS org.apache.maven:maven-settings:3.9.13 + +// https://mvnrepository.com/artifact/eu.maveniverse.maven.mima.runtime/standalone-static +//DEPS eu.maveniverse.maven.mima.runtime:standalone-static:2.4.41 + +// https://mvnrepository.com/artifact/eu.maveniverse.maven.mima/context +//DEPS eu.maveniverse.maven.mima:context:2.4.41 +// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple //DEPS org.slf4j:slf4j-simple:2.0.17 import static dev.jbang.jash.Jash.*; @@ -17,19 +33,23 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.util.LinkedList; import java.util.List; - +import java.util.concurrent.Callable; import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.Parameters; +import eu.maveniverse.maven.toolbox.plugin.CLI; -import java.util.concurrent.Callable; - -@Command(name = "deps", mixinStandardHelpOptions = true, version = "deps 0.1", +@Command( + name = "deps", + mixinStandardHelpOptions = true, + version = "deps 0.1", description = "Analyze JBang script dependencies") - public class deps implements Callable { - @Parameters(index = "0", description = "JBang script alias, filename or GAV to analyze", defaultValue = "") + @Parameters( + index = "0", + description = "JBang script alias, filename or GAV to analyze", + defaultValue = "") private String name; public static void main(String... args) throws Exception { @@ -51,7 +71,9 @@ public Integer call() throws Exception { if (!name.contains(":")) { // name is a script file or alias - String dependencies = $(jbang_launch_cmd + " info tools --quiet --select=dependencies " + name).get(); + String dependencies = + $(jbang_launch_cmd + " info tools --quiet --select=dependencies " + name) + .get(); JsonNode deps = new ObjectMapper().readTree(dependencies); // Build the gavList @@ -65,7 +87,7 @@ public Integer call() throws Exception { } // Check for version updates String[] toolbox_args = {"versions", String.join(",", gavList)}; - eu.maveniverse.maven.toolbox.plugin.CLI.main(toolbox_args); + CLI.main(toolbox_args); } catch (dev.jbang.jash.ProcessException e) { // script file or alias do not contain any //DEPS return 2; @@ -74,5 +96,4 @@ public Integer call() throws Exception { // Return success return 0; } - }