v0.144.0 #2789
maxandersen
announced in
Blog/Website
v0.144.0
#2789
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is a mixed bag of fixes but some key improvements - driven by the wonders and horrors of AI and the cost of public infrastructure.
CLI docs and Skills
Lets start with the wonders of AI - LLM's work really well with CLI's; especially if the help/usage command is informative - thus all commands in jbang cli now has more complete and clean documentation including examples of what each command can do. If that is not enough for your favourite coding agent to grok the wonders of Java and how JBang makes it easier to use - this release also bring
jbang skillsubcommand that will install and enable various jbang skills from https://github.com/jbangdev/agent-skills.Just run
jbang skill installand it will setup agents.md. Running install later will get updates of the skills.Maven Central limits and mirroring
In October Sonatype enforced more rate limits which started hitting our Github Action CI jobs hard. We probably weren't good central citizens so that was fair but in trying to enable use of mirrors and cache more locally we found JBang's mirror support had some glitches - especially when it came to authentication and error messages.
JBang already honored default Maven settings.xml files mirror settings:
But sometimes you don't want to touch Maven's settings or can't actually get to set one up ? Thus JBang can now be configured explicitly to have its own mirror setup beyond Maven's. Of course in usual JBang fashion also with much less ceromony.
I.e. if you want JBang to use google central mirror just do:
jbang config set repos-mirror central=google-centralor if you want to use an internal/private maven artifact proxy then do:
jbang config set repos-mirror https://nexus.mycompany.com/repository/maven-public/The syntax for how to define is same as Maven
mirrorOfsyntax; just simplified. See docs for details.centralis nowrepo.maven.apache.orgUntil now JBang used
repo1.apache.org- which works perfectly fine BUT because Maven and Gradle usesrepo.maven.apache.orgsome unecessary double downloading occurs but mirroring gets tricky to get right.This can/will trigger some more downloads and
--offlinemight not work - simply reconnect and let JBang fetch metadata/packages from the real hostname and things should work again.~/.jbang-netrcIn recent release we added support for
.netrcfiles to have better auth for private repos - unfortunately some tools likemisedidn't like the extra key/value we added thus now we also reads~/.jbang-netrcand merges it with~/.netrcper host. Handy when another tool that reads~/.netrcchokes on JBang-specific keys likejbang-auth gh-auth- keep those in~/.jbang-netrcand leave the login/password where they are.Several
//JAVAlines now combine properlyWhen a script and the files it pulls in with
//SOURCESask for different Java versions, JBang now picks one that satisfies all of them://JAVAlines17+and21+21+17+and212117and2117- with a warningBefore, a bug meant JBang could pick a version that was too old for one of the files and you would not be aware.
//JAVA 17(no+) means exactly 17, as it always has. If that conflicts with another//JAVA, the main script wins and you get a warning - if newer versions are fine, just add a+. See Java versions.jbang version --updatehonors native buildsWhen doing jbang updates and you use jbang in native mode (JBANG_USE_NATIVE=true) we now also update the native jbang binary keeping things in sync! Give it a try. If all goes well we might flip to native be the default :)
Fixes worth calling out
//SOURCESthat point back at a file through..no longer recurse forever.jbang initno longer deletes existing files or leaves half-written output behind when it fails..netrcgh-auth/glab-authno longer mistake a tool's warning on stderr for the token.jbang version --updatehonoursJBANG_USE_NATIVEand installs the native build.jbang build --nativeworks from an existing jar, and fat jars keep service providers from all dependencies.Thanks
A big thanks to everyone who contributed to this release: @arnabnandy7, @imeerkhurram, @gelatoni-xh, @mukel, @bartoszpop, @arimu1, @Bhumika-SN, @instreest, @sagarrsharmaa, @toyeshhm, @UgurcanGursen and @wfouche - and to @quintesse for the reviews and second opinions.
Have fun!
Changelog
🔀 Merge
🚀 Features
🐛 Fixes
🔄️ Changes
🧪 Tests
🧰 Tasks
🛠 Build
📝 Documentation
This discussion was created from the release v0.144.0.
All reactions