JBang is now a 100!
Fix missing authentication for Maven repositories
And this release fixes a regression where auth settings from ~/.m2/.settings.xml got ignored. Now they don't. Meaning by having the following in your ~/.m2/settings.xml:
...
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
...
which is the default case in GitHub actions jbang will once again work when using repositories that require authentication - which is the case for GitHub packages.
Compile and runtime flags
JBang now has -C and -R for setting compile and runtime flags.
This release adds debugging by default (i.e. running javac with -g). If you don't want that you can run with -C=-g:none. Turned that on because it allows then easy debugging - and it is what is the default for Maven and Gradle.
Download specific JBang version
Also added support for setting JBANG_DOWNLOAD_VERSION environment variable to allow installing arbitrary jbang versions. i.e.
curl -Ls https://sh.jbang.dev | JBANG_DOWNLOAD_VERSION=0.48.0 bash -s - app setup
Will (if no other jbang available on your system) install JBang 0.48 - the earliest JBang that had support for installing this way.
Enjoy!
Changelog
🚀 Features
- 1649814 honor JBANG_DOWNLOAD_VERSION in bootstrap setup (#1505)
- 6e6312d added support for specifying native options (#1494)
- 876a540 enable -g by default + allow -g=vars,lines,source,none (#1479)
🐛 Fixes
- cd1f71f ensure cache jdks directory exists before creating link (#1503)
- 5227a95 apply auth from global settings to repositories and use ~/.m2/settings.xml as global rather than user settings (#1506)
- 192972e now actually passing native options to
nativeimage
📝 Documentation
- d453045 Explain how you can install an existing jdk (#1487)
- dae3dff update links to the Conventional Commits spec (#1488)
- e74d8b0 [minor]
- fa3c0c0 add oliv37 as a contributor for code (#1509)
- 28bf948 Refactor RunContext into ProjectBuilder and other stuff (#1469)
Contributors
We'd like to thank the following people for their contributions:
Tako Schotanus, oliv37, Max Rydahl Andersen, GitHub, Jérémie Bresson, allcontributors[bot]