Tako Schotanus
Tako Schotanus
> will these snippets have full imports/classnames? without it they won't run much ? AFAIK the snippets should be compilable and testable, otherwise you could just stick with the old...
Yeah, at last in the external ones: https://openjdk.java.net/jeps/413#External-snippets But there's this explanation in the JEP: > For inline snippets, especially those that are not a full compilation unit, it will...
You're right, I'll see how doable that is. Btw this is an issue with all `--show-origin` options (alias, catalog)
Right now `all.` is used for settings that are part of the toplevel jbang command, so we could (re-)use that here as well. That way setting `all.xxx` could be seen...
Yes, you can actually install the distro of your choice by setting the `JBANG_JDK_VENDOR` environment variable to any of the values supported by Foojay's Disco API. This is actually documented...
That to me seems the easiest solutions at least. Otherwise we're indeed going to go down a rabbit hole. Although perhaps it could be just after parsing but before we...
Another (more complex) option would be to have integration dependencies. Eg. have something like `//INTDEPS` which are resolved first and can be used to pull in integrations. But of course...
Indeed! That is a much simpler solution that won't suddenly affect all source files passed to JBang but will only be used when specifically run.
Not necessarily worse, no. You'd have to make sure that at any point where the list must be _dedupped_ it actually is without duplicates. With LinkedHashSet you make sure it...
Fail? Are you sure? Not simply a warning? There might be times that it might be hard to dedup those values in a script while it's easy enough for us...