github jbangdev/jbang v0.100.0

latest releases: v0.132.1, v0.132.0, v0.131.0...
3 years ago

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)

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]

Don't miss a new jbang release

NewReleases is sending notifications on new releases.