jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.43k stars 159 forks source link

option for turning on/off integrations #1776

Open maxandersen opened 8 months ago

maxandersen commented 8 months ago

as discussed in #1774 there can be situatons where the classpath contains integrations you dont want to run.

we should at a minimum have a global off switch, maybe --no-integrations where --integrations are default ?

possibly consider --integrations=none and --integrations=all is default and open up for allowing list of '.' names to turn on/off specific integrations?

jmini commented 8 months ago

Couldn't it be something that is controlled in the comments of the file itself? Similar to other keywords like: //DEPS, //REPOS, //JAVA.

I would prefer having it in the source than having to type it on the command line every time I execute the script.

quintesse commented 8 months ago

@maxandersen perhaps this should be part of the build steps feature I had been working on some time ago? There were several ways to select which steps to run, including from the sleeve file. We could then great the quarkus integration as a kind of legacy build step.

maxandersen commented 8 months ago

How would that look?

jmini commented 1 day ago

@maxandersen @quintesse we would be very interested by this feature, since we currently can't execute a client library that is built with quarkus but that has no dependency on quarkus. What can we do to push this forward?