Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jbang doesn't store additional deps in JAR Class-Path anymore #708

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

quintesse
Copy link
Contributor

Fixes #707

Dumb mistake. I should have double-checked.

If possible I'd do a quick-fix release @maxandersen . It's not that bad , but I don't want people depending on this "feature" and then later complain it got broken :-)

To explain that better: right now you could do jbang run --dep fu:bar:1.0 myfile.java and also java -jar .../path/to/myfile.java.jar and that would work.... but it shouldn't. The --dep is for adding dependencies at runtime, it shouldn't be "baked in".

But of course people might think it's very useful, you could have provided a whole bunch of deps at compile time but at runtime you don't have to anymore, yay! No! Not yay! :-)

It goes back to the idea of being able to use service loaders etc, it must be possible to specify deps at runtime for that.

Sorry for the long explanation for such a small PR, but I just wanted to make clear the "severity" of the issue.

@maxandersen
Copy link
Collaborator

Test is failing because piccolo shows up twice.

@quintesse
Copy link
Contributor Author

Test is failing because piccolo shows up twice.

Yes, this is fixed now.

@quintesse quintesse requested a review from maxandersen February 5, 2021 16:02
@maxandersen maxandersen merged commit d41e4ae into jbangdev:master Feb 5, 2021
@quintesse quintesse deleted the fix_707 branch February 26, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jbang shouldn't store additional deps in JAR Class-Path
2 participants