An awesome new @jbangdev release! https://github.com/jbangdev/jbang/releases/tag/v0.34.0
We& #39;re">https://github.com/jbangdev/... especially proud of two features we think are really useful: automatically install Java when needed and something we call "implicit catalogs".
-
We& #39;re">https://github.com/jbangdev/... especially proud of two features we think are really useful: automatically install Java when needed and something we call "implicit catalogs".
-
@jbangdev v0.34.0 automatic install of Java means you don& #39;t need to have Java pre-installed to use JBang! Whenever it can& #39;t find a Java installed it will automatically download JDK 11 from @adoptopenjdk and use that.
Automatic install also means your scripts can specify for example:
//JAVA 14+
in their header and Jbang will make sure a JDK 14 or higher version is used to run it, or otherwise it will install it for you!
//JAVA 14+
in their header and Jbang will make sure a JDK 14 or higher version is used to run it, or otherwise it will install it for you!
Catalogs are another nice feature where you can create a lists of scripts which you can then easily reference. So instead of:
jbang https://github.com/quintesse/jbang-catalog/blob/master/simple_httpd.java
We">https://github.com/quintesse... do:
jbang catalog add quint https://github.com/quintesse/jbang-catalog
">https://github.com/quintesse... jbang httpd@quint
jbang https://github.com/quintesse/jbang-catalog/blob/master/simple_httpd.java
We">https://github.com/quintesse... do:
jbang catalog add quint https://github.com/quintesse/jbang-catalog
">https://github.com/quintesse... jbang httpd@quint
But with "implicit catalog" we go a step further, leaving out the need to explicitly having to add a catalog. As long as your catalog is defined on GitHub, GitLab or BitBucket you can simply do:
jbang httpd@quintesse
jbang httpd@quintesse
And Jbang will figure out that you& #39;re referring to a user/org named "quintesse" on GitHub in the repository called "jbang-catalog". Want to name it something else?
jbang httpd@quintesse/other-repo
Will do too.
jbang httpd@quintesse/other-repo
Will do too.
All this makes it really easy to create and share scripts that can be used anywhere by anyone, without having to worry if they have (the right version of) Java installed or not.
No more need to fall back on shell scripts or python or whatever when your main language is Java!
No more need to fall back on shell scripts or python or whatever when your main language is Java!