Skip to content

Releases: jbangdev/jbang

v0.121.0

16 Nov 14:59
Compare
Choose a tag to compare

Runnable Bluesky Posts

jbang https://bsky.app/profile/maxandersen.xam.dk/post/3lb34ijrdas2g

Changelog

🚀 Features


Contributors

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

v0.120.4

16 Nov 12:07
Compare
Choose a tag to compare

Reaching 120!

Honoring transitive dependencies managed setup

JBang will now (like Maven 4) honor transitive dependencies managed dependencies. This is probably how many think and expect dependencies to be resolved, but this is not the case for Maven 3 nor the previous JBang version. If you already use explicitly managed dependencies then that still wins, it is only that transitive dependencies now will be managed if transitive dependencies have a managed dependency section.

Example:
jbang info tools io.quarkus:quarkus-tls-registry-cli:3.15.1 would resolve jackson-core-2.16.1 in past but now resolve jackson-core-2.17.2 as the quarkus-tls-registry-cli has a managed pom.

Ignore transitive repositories

Another possible surprise is that transitive dependencies can add maven repositories into the resultion chain. Often that is fine, but in some cases you want to ensure only your own configured repositories gets honored.

To enable this there is now a --itr or --ignore-transitive-repositories flag.

Restored jitpack support

jitpack stopped supporting fetching HEAD snapshot, now we fallback to main-SNAPSHOT allowing jitpack dependencies via github URLs 'just work' as long as the repos branch name is main.

What's Changed

New Contributors

Full Changelog: v0.119.0...v0.120.4

v0.119.0

27 Sep 20:20
Compare
Choose a tag to compare

Changelog

🚀 Features

  • 5e986ab feat: we can now create junctions on Windows (#1804)

Contributors

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

v0.118.0

12 Sep 11:06
Compare
Choose a tag to compare

new feature:

  • linux now available as a provider of jdks to detect already installed jdks

notable fixes:

  • Kotlin stdlib now added by default for kotlin runs
  • Foojay.io errors are now always reported as github actions users seeing failures not reproducible elsewhere.

Changelog

🚀 Features

🐛 Fixes

  • 6e342c9 fix: transparently add kotlin-stdlib to the deps based on the configured kotlin version
  • f385183 fix: provide error info from foojay when listing/fetching JDK's (#1824)

🧰 Tasks

  • c8e5834 chore: fix typo
  • 3d5daa0 chore(deps): update dependency gradle to v8.9 (#1807)
  • 9a2a13a chore(deps): update jbangdev/jbang-action docker digest to 8095495 (#1768)
  • 99a9119 chore(deps): update github-actions (#1798)
  • 1e2e4d0 chore(config): migrate config renovate.json (#1827)
  • 3797d78 chore: add initial releasecheck file

🛠 Build

  • a0b3fe4 build: use proper qute artifact name
  • 1d06b0e build: dont update qute higher than what can run on java 8
  • e72e466 test: add test for runkotlin

📝 Documentation

Contributors

We'd like to thank the following people for their contributions:
GitHub, Max Rydahl Andersen, Tako Schotanus, evanchooly, k-klemmer, renovate[bot]

v0.117.1

07 Jul 20:07
Compare
Choose a tag to compare

Changelog

🐛 Fixes

  • 35f8bf2 fix: fix container structure test

Contributors

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

v0.117.0

07 Jul 19:43
Compare
Choose a tag to compare

Main new feature thanks to @cstamas is you can now use @fatjar which comes from maven4 to express the jar dependency should not download transitive dependencies defined for it. Useful for jars that has shaded in all its dependencies.

Furthmore JBANG_LAUNCH_CMD is now available to be able to know which jbang command was used to launch the jbang script with. Thanks to @dsyer.

...and a bunch of small minor fixes.

Changelog

🚀 Features

  • ccdae1d feat: introduce type 'fatjar' (#1800)
  • a2ef5a7 feat: export an additional env var pointing to the location of jbang (#1811)

🐛 Fixes

  • b8f9591 fix: export portable --force now works (#1821)
  • 0461c57 fix: Filter 'app list' output by executable (#1783)
  • cdb99ff fix: make sure native build honors the --fresh flag (#1788)
  • e835e50 fix: no longer get an exception when using option names as values (#1790)

🧰 Tasks

  • 28ad5a8 chore: made version --verbose more verbose (#1794)
  • d863c33 chore(deps): update github-actions (#1765)
  • 792e83e chore(deps): update dependency gradle to v8.7 (#1764)
  • 70d9e53 chore(deps): pin github/codeql-action action to 4355270 (#1796)

🛠 Build

  • b58b6a0 build: update to codeql v3

Contributors

We'd like to thank the following people for their contributions:
Claus Ibsen, Dave Syer, GitHub, Igor, Max Rydahl Andersen, Tako Schotanus, Tamas Cservenak, allcontributors[bot], renovate[bot]

v0.116.0

01 Apr 07:47
Compare
Choose a tag to compare

This release adds jbanghub catalog in by default. Meaning jbang catalog list now provides easy access to list of catalogs. See more at https://github.com/jbanghub.

JBang automatic java downloading now works on riscv64 and 32-bit arm systems thanks to @sxa.

Changelog

🚀 Features

🐛 Fixes

  • c26de98 fix: 32-bit arm architecture detection missing (#1773)
  • eceb5c1 fix: fixes for handling more 3xx codes and not asking for trust twice (#1771)

📝 Documentation

  • c494420 docs: explain how to specify classifiers on dependencies (#1775)

Contributors

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

v0.115.0

09 Mar 18:41
Compare
Choose a tag to compare

About time we have the first release of 2024!

This one has a good set of fixes and a few cleanup fixes around Aliases, Catalogs and app installs.

First, a (small) breaking change:

Aliases now get arguments appended instead of overwritten.
i.e. before you made an alias like:

jbang alias add 
  --name=color_sqlline \
  --deps com.oracle.database.jdbc:ojdbc8:23.3.0.23.09,com.h2database:h2:2.0.204 \
  sqlline:sqlline:1.12.0 --color=true

and call it jbang color_sqlline --nullValue='***' the --color=true would not apply.
That is now the case.

We should have done that from the beginning. It is more natural. Thank you to @robin-a-meade for reminding us!

Second, app installs now can specify build arguments to make it possible to have different commands with different build input.
For example specify system properties to change a version for a dependency.

Finally, catalogs now support import, i.e. jbang catalog add --import jbanghub will import all the alias, catalogs, templates etc. in the jbanghub catalog making it directly available without having to add @jbanghub to the name.

To do this some of the list commands and how catalog names are treated have been unified so things looks the same and can be accessed consistently.

Changelog

🚀 Features

  • 8855f35 feat!: alias arguments are now appended (#t)
  • 7380851 feat: allow setting build/run options for app install (#1754)
  • b9f8412 feat: extended syntax for catalog references (#1756)

🐛 Fixes

🧰 Tasks

  • fe45753 chore(deps): pin dependencies (#1762)
  • 7d61581 chore: enable renovate per mgr and best practice
  • d92cb15 chore: enable renovate per mgr and best practice
  • aebb6d1 chore: update quarkus version in templates (#1757)
  • 87c02ad chore: made rendering of lists less noisy (#1748)
  • 38fa191 chore: updated java-properties library to 0.0.7 (#1752)
  • 1657c47 chore(deps): update tj-actions/verify-changed-files action to v8 [security] (#1747)
  • 314bcf2 chore: update deps (#1721)
  • d662199 chore(deps): update tj-actions/verify-changed-files action to v7.2 [security] (#1725)
  • f5d8300 chore: added descriptions to some edit command flags (#1727)

Contributors

We'd like to thank the following people for their contributions:
GitHub, Matteo Mortari, Max Rydahl Andersen, Tako Schotanus, Tamas Cservenak, Tim Felgentreff, allcontributors[bot], renovate[bot]

v0.114.0

09 Dec 07:48
Compare
Choose a tag to compare

20% Faster

Moved artifact resolution to use MIMA via @cstamas's great work. This makes jbang use the newer version of Maven's artifactresolver.

The first obvious benefit is that JBang now is able to utilize the performance improvements and use better http client implementations bringing about ~20% faster downloads.

When next version of Maven resolver becomes available that number should increase even more significantly when it starts utilising http2.

We've tested as much as we could - all existing tests passes but it is a change of dependency resolution thus if you have some project that changes behavior because of this behavior do please open an issue.

Changelog

🔄️ Changes


Contributors

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

v0.113.0

24 Nov 00:23
Compare
Choose a tag to compare

Changelog

Added a magic %{deps:..} expansion on command line that will resolve dependencies in that expression and replace it with a classpath.

Lets you do things like:
jbang sqlline@maxandersen -cp %{deps:org.hsqldb:hsqldb:RELEASE} other args

removing need to manually deal with absolute paths to .jar files.

🚀 Features

  • f79a0f2 feat: added support for %{deps:...} substitutions in arguments (#1707)

Contributors

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