Tags: big80/jbang
Tags
Small improvements but they all count :) Visual Studio code will now automatically download java sources and documentation when needed (i.e. on hover) and the VSCodium will be installed with java dependency extension to give better java project navigation. Quarkus templates upgraded to use bom pom feature recently introduced. Thus `jbang init -t qcli cli.java` will not init file with a Quarkus platform and no need to explicit list versions for Quarkus extensions. * include vscode-java-test of vscodium install to get run/test features [minor] (#f9e9a5de) * quarkus templates to use bom poms (#02884c6a) * Automatically download sources in VS Code (jbangdev#678) (#43d784d8) * java dependency extension installed together with vscode (#4f8b7eb8, closes jbangdev#675)
<a name="0.62.0"></a> I'm extremely happy to say that with this release jbang now support bom poms allowing you to do things like: ``` //DEPS io.quarkus:quarkus-bom:1.11.0.Final@pom //DEPS io.quarkus:quarkus-resteasy //DEPS io.quarkus:quarkus-smallrye-openapi //DEPS io.quarkus:quarkus-swagger-ui ``` or ``` //DEPS com.microsoft.azure:azure-bom:1.0.0.M1@pom //DEPS com.microsoft.azure:azure ``` Notice how first line are importing boms with `@pom` classifier. When jbang see these it will load that bom pom `<dependencyManagement> section to use as fallback when when resolving version less artifacts. This removes a lot of redundancy and replaces it with just one line for the BOM POM. Finally also added `run/test/` visual code extension to the default vscodium install using jbang edit --open myapp.java` * include vscode-java-test of vscodium install to get run/test features [minor] (#a025d73c) * support for BOM POM's i.e. maven dependencyManagement (jbangdev#673) (#d5506a41, closes jbangdev#63)
<a name="0.62.0"></a> * jbang app install --native (jbangdev#667) (#b5008305) Lets you tell jbang install you would like to have the install use native mode. i.e. `jbang app install --native properties@jbangdev` now when calling `properties` it will run natively (build if necessary). Requires GRAALVM_HOME be set to a working Graal VM.
<a name="0.61.0"></a> With this release there are now experimental export support of portable jar by using `jbang export --portable myapp.jar`. The produced jar will have a classpath setup to use jars relatively in a `lib` directory where all dependencies will be copied to. That allow you to copy the .jar + lib diretory to another machine and run it. There is now support for `//DESCRIPTION` which will be used when using `jbang alias add` as the description used in catalogs. And finally, jbang build integration passes source locations enabling things like Quarkus to support dev mode. To use this you need to have a jbang app depend on Quarkus 1.11 or higher and then run with `jbang -Dquarkus.dev myapp.java`. Changes to `myapp.java` will automatically be built without need to restart. * allow quarkus dev mode (jbangdev#666) (#1e8e569e) * add //DESCRIPTION tag in scripts (jbangdev#660) (#c4544293) * Add export --portable (jbangdev#637) (#a6103627)
<a name="0.60.0"></a> Users with new shiny M1 Apple devices or other with "unknown" architectures can now run `jbang` without complaints. Also made it possible with `--jsh` to force triggering of jshell mode. * do not fail on unrecognized OS like arm64 for new macs. should at least try run located java. (jbangdev#657) (#9d8b614c) * have app install use better derived name (jbangdev#659) (#26cb5e6f) * --jsh to allow forcing .jsh (jbangdev#658) (#bbab86ec)
<a name="0.59.0"></a> Made vscodium installation ask before installing and added `-V` and `--version` as shortcuts for version info. * fix some spotbugs warnings (jbangdev#643) (#af160e3d) * add -V/--version for basic version info. Fix jbangdev#601 (#b92a9e06) * ask first before downloading default editor (jbangdev#649) (#22a4a4a5)
<a name="0.58.0"></a> Its all about editing this time. `jbang edit --open xyz.java` will now open your default editor and not require you to always specify an editor. Default editor will be what JBANG_EDITOR environment variable is set to or if that is empty `jbang` will now automatically download and configure a portable vscodium (free/libre Visual Studio code distribution). This vscodium instance will have java support pre-installed making it the absolute fastest way to get started developing Java. As always with anything jbang installs, vscodium is fully optional - it will only happen if you do not have any editor configured. Thus if you want to use your own IDE/editor you just continue using `jbang edit --open=myeditor xyz.java`. Note, vscodium install process is slightly different on all three major platforms thus it is still considered experimental - if you have feedback and can confirm it works (or not) please do open issue on https://github.com/jbangdev/jbang/issues - Thank you! Finally `-Dkey` is now parsed as `Dkey=true` allowing to easily set System properties. * Download and setup vscodium if no editor available. (jbangdev#638) [minor] (#0577d1fd) * Default editor --open witohut editor opens default editor
<a name="0.57.0"></a> Biggest new feature is the notion of default application - what it means is that if you specify a directory or a url ending with a `/` then jbang will launch the default application using `main.java`. This lets you do `jbang .` to run current directory or things like "running" a web url, i.e. try `jbang https://jbang.dev`. This also allows a default behavior when using `jbang` in container, buildpacks, automations, etc. In addition we got a nice fix from @jeffmaury to have `jbang` use `GITHUB_TOKEN` when accessing gists/github to reduce throttling. The sad part of this release is that we had to disable support for tweets as twitter.com seem to have removed support for getting the text of a tweet without javascript/complex logic. There are a few other few fixes, all listed below. * use environment variable GITHUB_TOKEN while accessing GitHub API… (jbangdev#590) (#4dcd5dc0, closes jbangdev#168) * Make `app install --force` work (jbangdev#592) (#aa3eac30, closes jbangdev#589) * download of jar via https directly works now (#0b79cea6) * remove twitter support as twitter don't want us to have nice things. Fix jbangdev#615 (#3b8e36d4) * REPOS with just hostname no longer gives error Fix jbangdev#614 (#da3f33f6) * add sponge repo alias (jbangdev#616) (#6cafd6c8, closes jbangdev#610) * `app install --force` now properly overwrites (jbangdev#623) (#ae76cf1c, closes jbangdev#620) * add --force to export (jbangdev#628) (#6f2a42b5, closes jbangdev#609) * enable assertations (jbangdev#629) (#9ec140d7) * add notion of default application (jbangdev#630) (#5f168e49)
<a name="0.56.0"></a> Big `jbang app` feature + bugfixes. There is now a `jbang app` which install jbang applications/scripts locally. You use it by first calling the one time setup (`jbang app setup`) to configure your local environment to have a `PATH` that `jbang` can install "apps" into. Now you can do things like `jbang app install properties@jbangdev` to get a `properties` into your `PATH` so you can call it from anywhere as if it was any other application or script. `jbang app install` works with scripts, jars, urls, aliases etc. Really excited to this come to fruition - send feedback/open issues for this - do you like it or hate it ? `jbang edit` now honor jitpack and `//REPOS` so now dependency resolution will work in your IDE when you use these. This is a small tweak to the parsing so if you have a comment at the end of line of a `//DEPS` or similar command then `jbang` will ignore it. That is useful for when using asciidoc reference in comments feature, which gives you this: ``` //DEPS info.picocli:picocli:4.5.0 // <.> //DEPS org.zeroturnaround:zt-exec:1.12 // <.> //DEPS commons-codec:commons-codec:1.15 // <.> //DEPS org.slf4j:slf4j-nop:1.7.30 // <.> ``` In previous versions jbang would try and resolve `//` and `<.>` as dependencies. Now it will ignore '` // `' (notice the surrounding spaces) and anything following it. New repositories on GitHub defaults to `main` breaking the jitpack integration. Now instead of using `master` as default we use `HEAD` which gives you the tip of the default branch independent of its actual name. * Don't attempt to minimse jboss-logging (jbangdev#562) (#8fc92b68) * PowerShell zero-install now works again (jbangdev#572) (#f61aa98c) * `app install` with relative file paths now works (#2767b22b) * handle the fact that on Windows paths can be on different roots (#777d7870) * watchService's event is relative to watched directory (#7395c4fb) * use dependency cache when launching GAV. (jbangdev#586) (#44a88580, closes jbangdev#222) * support urls with extension less files Fixes jbangdev#568 (jbangdev#585) (#fbdec5c2, closes jbangdev#568) * jitpack no long assumes default branch is master (jbangdev#588) (#654667ca, closes jbangdev#564) * minimal jitpack and //REPOS support in edit/live mode (jbangdev#570) (#f134fb5c) * added `install` command that turns scripts as user commands (#5406bae8) * implemented `app unistall` and `app list` (#63973382) * // commands ignore // comments (jbangdev#584) (#732cc69b, closes jbangdev#567) * split jbang installation off from `setup` to `install` * Introduce `app` command and turn `install` into a subcommand * Made `setup` a subcommand of `app` * `app install` name is now an option
<a name="0.55.2"></a> Bug fixes - mainly jbangdev#562 to avoid breaking Quarkus build integration. * running tests won't affect user's environment anymore (jbangdev#553) (#fdcd0ff1) * attempt of a more explicit edit message (jbangdev#555) (#f15cd878, closes jbangdev#551) * Don't attempt to minimse jboss-logging (jbangdev#562) (#15c89b87)
PreviousNext