This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //DEPS org.asciidoctor:asciidoctorj:3.0.0 | |
| //DEPS org.asciidoctor:asciidoctorj-api:3.0.0 | |
| //DEPS org.asciidoctor:asciidoctorj-cli:3.0.0 | |
| //DEPS org.asciidoctor:asciidoctorj-epub3:2.1.3 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram:3.0.1 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram-batik:1.17 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram-ditaamini:1.0.3 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram-plantuml:1.2025.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class jmv { | |
| static String getJvmMajorVersion() { | |
| String version = System.getProperty("java.version"); | |
| if (version.startsWith("1.")) { | |
| version = version.substring(2); | |
| } | |
| return version.replaceAll("(\\d+).+", "$1"); | |
| } | |
| public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json, os, sys | |
| os.system("jbang info tools %s > jbang-deps.json"%(sys.argv[1])) | |
| file = open("jbang-deps.json") | |
| d = json.load(file) | |
| file.close() | |
| os.unlink("jbang-deps.json") | |
| os.system("jbang toolbox@maveniverse versions " + ",".join(d["dependencies"])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///usr/bin/env jbang "$0" "$@" ; exit $? | |
| //DEPS org.asciidoctor:asciidoctorj:3.0.0 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram:3.0.1 | |
| //DEPS org.asciidoctor:asciidoctorj-diagram-plantuml:1.2025.3 | |
| import org.asciidoctor.Asciidoctor; | |
| import org.asciidoctor.Options; | |
| import org.asciidoctor.SafeMode; | |
| import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| skinparam ParticipantPadding 50 | |
| participant "master" as dev | |
| participant "v8" as s4 | |
| participant "v9" as s5 | |
| participant "v10" as s6 | |
| activate dev |