github jbangdev/jbang v0.53.0

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

0.53.0 (2020/11/07)

Lots of fixes, but also some nice features!

//SOURCES will now recursively include //SOURCES and //DEPS allowing for better reuse/componentization for
multi source scripts/apps.

Yes, multiple source is supported in JBang - it actually been for a while as javac will
automatically include reference classes available relative to a file.

When we realized that worked we enabled jbang edit to work with multiple files including
proper package handling and now //SOURCES support file patterns, i.e. //SOURCES model/**/*.java
to include all java files found under model.

Furthermore you can now even use URL's in //SOURCES, like //SOURCES https://gist.github.com/tivrfoa/bb5deb269de39eb8fca9636dd3c9f123#file-gsonhelper-java.

And that last example shows the last major feature you can now refer to individual files via a anchor in a gist url.

Big parts of these were contributed by @tivrfor as his first contributions! Thank you.

Features

  • search //SOURCES and //DEPS in multiple files (#169e67c4)

Bug Fixes

  • support nested multiple sources and gist with specific filenames (#924e2963)
  • better check for String contains main method (#468) (#87ff6813)
  • update base path when resolving //SOURCES (#477) (#2c372185)
  • jbang cache clear --deps (#be3c2b37, closes #475)
  • fail if class name for is not valid java (#ecc1b19d, closes #460)
  • #274: brew install now should work out of the box since no longer keg_only (#e5f85afc)

Don't miss a new jbang release

NewReleases is sending notifications on new releases.