Add jbang: single-file Java with JBang 0.132.1 on JDK 25 (deps, compact source files, Spring Boot, templates, native)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
Ankur Mhatre
2026-12-01 08:20:46 +05:30
co-authored by Claude Sonnet 5.5
parent 7c677a39d2
commit ddc3ec9d90
34 changed files with 639 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
$ jbang template add -f jbang-catalog.json --name tool '{basename}.java=tool.java.qute'
[jbang] Template 'tool' added to 'jbang-catalog.json'
$ cat jbang-catalog.json
{
"templates": {
"tool": {
"file-refs": {
"{basename}.java": "tool.java.qute"
},
"description": "Picocli CLI skeleton",
"properties": {}
}
}
}
$ jbang init -t tool Slugify.java
[jbang] File initialized. You can now run it with 'jbang Slugify.java' or edit it using 'j
$ sed -n 9,10p Slugify.java
@Command(name = "Slugify", mixinStandardHelpOptions = true, version = "Slugify 0.1")
$ jbang Slugify.java Hello World
[jbang] Building jar for Slugify.java...
Slugify processed: Hello World