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

feat: scripts can now implement integrations #1634

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

quintesse
Copy link
Contributor

Needs #1630 to be applied first

Before the class loader would not be set up correctly
because it expects to be running from an uber JAR with
all the dependencies available. Now we specifically
add the path to the Gson library in those cases.
The user won't notice but it makes life easier for
developers.
Before this change JBang would only look for integrations
in the dependencies, now it also looks in the currently
compiled code.
@quintesse quintesse marked this pull request as draft June 9, 2023 08:48
@quintesse
Copy link
Contributor Author

So the discussion to merge this or not was about the issue that user files are now part of the class path when running the post build and if this could result in problems or not. Right now it only runs with all the dependencies specified by the user code, but not the code itself. (Which is why currently it isn't possible to write integration code within the user code).

A possible issue might be that the classloader would hold a lock on the very resources that the integration might try to change, something that especially on Windows might cause problems.

@maxandersen
Copy link
Collaborator

with #1641 this should be doable without "polluting" the integration class path.

But it does not yet work because the integration assumes all deps have a GAV...

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.

2 participants