From 12f0c83d9d41b05d657b3b645c047f37d77d07ac Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Thu, 23 May 2024 22:33:08 +0200 Subject: [PATCH] Add JResolve demo --- .bach/src/run.bach/run/JResolveDemo.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .bach/src/run.bach/run/JResolveDemo.java diff --git a/.bach/src/run.bach/run/JResolveDemo.java b/.bach/src/run.bach/run/JResolveDemo.java new file mode 100644 index 000000000..d79ebc3e4 --- /dev/null +++ b/.bach/src/run.bach/run/JResolveDemo.java @@ -0,0 +1,16 @@ +package run; + +import run.bach.*; + +public class JResolveDemo { + public static void main(String... args) { + var runner = new ToolSpace(ToolSpace.Flag.SILENT); + var jresolve = Tool.of("https://github.com/bowbahdoe/jresolve-cli/releases/download/v2024.05.10/jresolve.jar#SIZE=754432"); + var run = + runner.run( + jresolve, + "pkg:maven/org.junit.jupiter/junit-jupiter-engine@5.10.2", + "pkg:maven/org.junit.platform/junit-platform-console@1.10.2"); + System.out.println(run.out()); + } +}