github jbangdev/jbang v0.66.0

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

jcenter, version check and offline

In this release we say bye-bye to jcenter and welcome to version check and enforced --offline mode.

maven central now used by default

jfrog announced they are shutting down their maven repository known as jcenter. jcenter was the default maven repository for jbang which is now changed to be maven central.

Thus if you have a jbang app that relied on dependencies found only in jcenter you will need to add jcenter repository using //REPOS.

Example:

//REPOS jcenter

Note: if you still want maven central used when using jcenter then you need to list both:

//REPOS mavencentral,jcenter

Automatic version check

jbang will now asynchronously check at a regular interval if a newer version is available and provide instruction on how to update. If you do not want the version check you can set JBANG_NO_VERSION_CHECK environment variable.

--offline now fully honored and enforced

offline mode was only fully honored by the dependency resolver. Now it is enforced for fetching scripts, catalogs, version check etc. Meaning --offline
truly is offline and if jbang needs to go online it will
now fail where it before would let the request go through.

Catalog refreshed using --fresh

Using jbang --fresh env@jbangdev and the @jbangdev catalog already had been fetched it would not use the latest versions despite the --fresh flag. Now catalogs will be downloaded if there are changes when using --fresh.

Bug Fixes

  • move to use mavencentral instead of jcenter (#714) (#7c342a4a)
  • The --offline flag is now toplevel and works in more cases (#d88da9b2)
  • Don't check for new versions in the container version of jbang (#6f73189f)
  • include java vendor in agent string (#2c855f4d)
  • remove version check env from github action (#95a32cef)

Features

  • Jbang now checks if a new version of itself is available (#f9392d2b)
  • Now using new jbang download URL (#ec21e210)
  • Made the version checking asynchronous (#8010f54d)
  • Added --check and --update options to jbang version (#15fcfa9e)

Refactor

  • Made --fresh a toplevel option
  • Made sure we don't check for a version twice

Don't miss a new jbang release

NewReleases is sending notifications on new releases.