github jbangdev/jbang v0.79.0

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

Release that enables specifying java version and main method + java options when setting up aliases. Useful when you cannot change the jar or source code the alias refer to, i.e. jbang alias add --java 16 <urltojar>

You can now refer to {scriptref} in templates to know what file name user pointed to when running jbang init.

Also piping script to a jbang is now a bit smarter - it will try and find a main class so cat main.java | jbang - will just work; and otherwise it will assume the input is jshell style code. If you want to force jshell behavior you can activate that with --jsh, ie. cat main.java | jbang --jsh -

Changelog

🚀 Features

  • 2d0195b added java and main options to aliases (#979)
  • 3d476c9 build now has --catalog option too (#977)
  • 99b5281 Add java-options for aliases (#976)
  • 5be76e6 detect main method in stdin to trigger java instead of jsh (#972)
  • aba5f68 be able to refer to scriptref in init templates (#968)

🧰 Tasks

  • 3f6688e disable docker and sdkman packagers
  • 09e6acc fix and expression
  • ff5984c checkout to fix build check
  • db060e4 only updatewebsite if docs folder changed
  • 2c329d1 fix package publish ch
  • 8dd106e use jreleaser directly for publish

Contributors

We'd like to thank the following people for their contributions:
Tako Schotanus, Max Rydahl Andersen, GitHub

Don't miss a new jbang release

NewReleases is sending notifications on new releases.