Skip to content

Releases: jbangdev/jbang

v0.99.1

13 Oct 15:48
Compare
Choose a tag to compare

Changelog

In our move from Shrinkwrap resolver to Aether we missed handling of special packaging types like @test-jar. Reported by @michael-simons and now fixed by @quintesse !

🐛 Fixes

  • 2edef92 the Aether resolver now uses packing types
  • 3dbb8f9 do not use daemon in ci build

📝 Documentation


Contributors

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

v0.99.0

05 Oct 11:42
Compare
Choose a tag to compare

Enterprise JBang

JBang now fully support proxies and credentials to use with private/internal repositories. Something that was only partially working before. Settings will be read from ~/.m2/settings.xml and in future we might make more explicit setup available based on feedback.

This was enabled as we moved from Shrinkwrap to use direct Maven/Aether API which also helped reduce the size of jbang from 5.5 to 4.9 MB

In addition various fixes and improvements enabling better use of jbang, one particular is jbang info fixes that enables the recent new JBang Visual Studio code to be even more awesome. If you have not yet tried it do give it a go - enables to open vscode on any folder with JBang enabled .java code and thing like content assist and running with jbang Just Works. Absolutely the simplest and fastest way to start writing code in Java.

Changelog

🚀 Features

🐛 Fixes

  • a38cf87 fixed "app install" using path with spaces
  • e1f62dd fixes running installed apps on Windows
  • 4d6ab0e use //GAV for export mavenrepo (#1468)
  • 7c99280 check for recursion when running info
  • d983101 update to disco v3 endpoints
  • 10426e9 Fixed NPE when running info on a JAR file (#1452)

🛠 Build

📝 Documentation


Contributors

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

v0.98.0

02 Sep 14:32
Compare
Choose a tag to compare

New feature release!

MANIFEST

New //MANIFEST keyword to allow writing entries to META-INF/manifest.mf including supporting build time variables:

//MANIFEST version=${version:unknown}

will result in version=unknown by default and version=1.2 if built using jbang -Dversion=1.2 yourapp.java.

build.jbang (preview)

using jbang to building project is easy; what if you also want to run tests or other build related tasks. For that jbang are hitting its limits but we think there might be a few things we can do without forcing users to use maven/gradle/etc builds.

In this version we enabled build.jbang to be picked up and read the commands from that external file. We will evolve/change that format but at least you can try out jbang without having a single // directive in any of your .java files.

Changelog

🚀 Features

  • 65f5723 Added //MANIFEST option for source files (#1445)
  • 731399a added support for build.jbang project files
  • 9faf9f8 Hide .project/.classpath from virtual project in VS Code (#1430)

🐛 Fixes

  • 155c8aa force minimum java 11 for quarkus init
  • 55b7833 Bump picocli to 4.6.3 in doc and src
  • 94c48c1 Bump Quarkus 1.11.0.Final -> 2.11.2.Final
  • d76a13d change kotlinc's extension to .bat on Windows (#1434)
  • ce7595c typo in README.md.tpl (#1431)

♻️ Changes

  • d28b4f3 more central role for Project
  • 253a1af moved build-related code from RunContext to Project
  • e62f430 introduced the concept of Project

🧰 Tasks

  • 2515783 put new project features behind --preview option

Contributors

We'd like to thank the following people for their contributions:
YeungYeah, Michael Bornholdt Nielsen, Tako Schotanus, Ikko Ashimine, Max Rydahl Andersen, GitHub, Fred Bricon

v0.97.0

10 Aug 13:10
Compare
Choose a tag to compare

Changelog

Main thing is fix for jbang info tools so it works again enabling IDE integration to work!

But also interesting that jbang edit with vscodium will now install jbang-vscode
allowing you to call codium yourfolder and edit jbang based scripts apps without having to have build.gradle project generated.

🚀 Features

  • 37b6781 add jbang-vscode to codium + add usability vscode settings (#1427)

🐛 Fixes

  • 3af66d9 info tools again generates info for nested sources (#1426)

Contributors

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

v0.96.4

03 Aug 14:10
Compare
Choose a tag to compare

Changelog

--native flag was broken/incomplete thus replace with jbang export native; this
patch release will explain to users what to do if they used the now removed option.

🧰 Tasks

  • e870607 add deprecation message for export --native (#1422)

Contributors

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

v0.96.3

03 Aug 09:00
Compare
Choose a tag to compare

Changelog

Quick fix to have container images published properly.

🐛 Fixes

  • 6164750 formatting of docker readme

🧰 Tasks


Contributors

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

v0.96.1

02 Aug 12:29
Compare
Choose a tag to compare

Changelog

Important fixes to have the Windows install/script work with systems with spaces.
And a fix that avoids problem of duplicate maven repos.

🐛 Fixes

  • 9968fff now correctly handling duplicate repos (#1419)
  • a18554b Add splatting for passing arguments in Powershell scripts
  • 0eecfbf remove unnecessary quotations for java binary

🧰 Tasks

  • d6bf941 (deps) update java-properties to 0.0.5

🛠 Build


Contributors

We'd like to thank the following people for their contributions:
Tako Schotanus, Max Rydahl Andersen, Gustavo Adolfo Rodriguez Libreros, GitHub, Gustavo Adolfo Rodríguez Libreros

v0.96.0

14 Jul 08:05
Compare
Choose a tag to compare

Lots of small bugfixes + stop generating class-path in jars that confuses graalvm native-image.

Changelog

🐛 Fixes

  • 5c5049d don't add Class-Path by default to JARs (#1398)
  • bfbb744 wrapper install now also copies jbang.ps1 (#1391)
  • b08c05b looking for compiler executables on Windows (#1395)
  • 077422d properly detect existing JDK on Macs
  • c89b4c5 fix problem with JDK paths containing spaces
  • 648fc02 fixed certain commands not validating input correctly (#1376)

♻️ Changes

  • 8d9582a fix typo in MarkdownSource.java
  • b4b5d32 small change to Builder API
  • 9fedad4 minor refactor of the IntegrationManager
  • 13df254 SourceSet no longer uses Source
  • 5455a89 minor refactor of RunContext
  • aadbb34 added manifest attributes to SourceSet
  • c1fb77e using less Optional
  • e2686a9 introduced BuildMixin

🧰 Tasks

  • 82d955c changed many File references to Path

🛠 Build

  • a77e83a added tests for additional deps and cp

📝 Documentation


  • a230f53 [minor] release
  • 5b5e364 Also reword //JAVA_OPTS to //JAVA_OPTIONS
  • 4fe2268 Small typo when referring to JAVAC_OPTIONS
  • 35056e8 Add test with --fresh and --repos

Contributors

We'd like to thank the following people for their contributions:
Tako Schotanus, Ikko Ashimine, Jeremie Bresson, Max Rydahl Andersen, GitHub, Nándor Holozsnyák, Jordi Sola

v0.95.0

09 Jun 21:19
Compare
Choose a tag to compare

Changelog

This release introduces "globbing" for --sources and --files meaning you can do things like:

jbang --sources src/main/java --files src/main/resources script.java

or if you want only .java and only .html files:

jbang --sources src/main/java/**.java --files src/main/resources/**.html script.java

This lets you build bigger projects with more complex structures, while still being quite compact.

A interesting sideeffect of these features is that JBang can now be used to build JBang itself. See bootstrap.java if interested - still a few things needed to do a 100% bootstrap but we are getting closer :)

As been a while since a release also a good bunch of bugfixes, especially around alias handling that had a regression. If aliases was not behaving as you expect try this update and things should be better!

🚀 Features

  • 902c8cb --sources and --files can now refer to directories
  • 023d820 //FILES now supports globbing and new --resources option
  • cd6a7eb added --available to jdk list
  • 81ed889 add in-progress bootstrap.sh to build jbang with jbang

🐛 Fixes

  • 8489101 make tests work on Windows
  • b880866 sub folders are now properly handled for globbed resources
  • 94bee92 inclusion of all resources
  • 8057fba remove todo
  • 26b7688 export can now build jbang with jbang
  • 207ca62 make aliases work with --repos (#1372)
  • 2d8e343 aliases now correctly added
  • 07e99c8 --sources now handle comma separated input (#1365)
  • f526a7d can now use globbing for --sources
  • d05dced move away from java.io.File to Path/Files

♻️ Changes

  • 411507d extracted CLI source options into a mixin
  • 9dc4741 --resource/-r are now --files/-f
  • 95adbfd removed Vendor enum
  • cf0b6c1 clean-up of the JdkManager code
  • 047f51a remove ability to set Jdk release

🧰 Tasks

  • d418f2a slightly improved error message when using globbing
  • 08f0b99 minor code cleanup
  • 38fd9a0 fix typo in configuration.adoc (#1366)

Contributors

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

v0.94.0

13 May 06:20
Compare
Choose a tag to compare

Changelog

Repository fixes/improvements is the name of the game.

First off, --fresh will now check for update to dependencies using SNAPSHOT and RELEASE names.

Then, adding spring-snapshot, spring-milestone, s01sonatype-snapshots and sonatype-snapshots possible shorthands for maven repositories and --deps now properly suppport comma separated list. Means you can use snapshots in a much more compact version:

jbang --repos mavencentral,s01sonatype-snapshots -Dquarkus.version=999-SNAPSHOT myrest.java

🚀 Features

  • 1a45a50 improve maven repo shorthand and logging (#1360)
  • 60b7c5b Set Maven update policy to ALWAYS when --fresh is used

♻️ Changes

  • acf4146 turned isRunCommand into isMainRequired

  • 2a67ca5 [minor] release
  • ac0b344 Allow no main if not non-interactive(batch) run

Contributors

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