-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implement plugin dependencies, loaded in dependency first order #1701
Implement plugin dependencies, loaded in dependency first order #1701
Conversation
2338474
to
2a86ef7
Compare
# Conflicts: # chunky/src/java/se/llbit/chunky/main/Chunky.java
This also makes PluginManager much easier to test.
2a86ef7
to
7fb0107
Compare
chunky/src/java/se/llbit/chunky/plugin/loader/JarPluginLoader.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just unsure whether we need the plugin loader to be pluggable.
Yes that is one of the main goals for this PR, do you remember the discussion about having a plugin that would transform 2.4.x plugins to support 2.5.x etc.? That's the main reason |
Ah, indeed I do remember this. Allright. 👍 |
I added the new dependency to the readme etc. and replaced semver4j with maven-artifact. What do you think about the last two commits, @NotStirred? Edit: maven-artifact depends on org.codehaus.plexus.util 🤔 Why can't we use semver4j or something more lightweight? |
Chunky is not and never has been semver, and plugins are almost definitely not either |
new commits look good, thanks 👍 maven-artifact is 200KB including all dependencies, that's not unreasonable |
d28d3ea
to
2efacc4
Compare
This PR doesn't implement a plugin loader API but that is now ready for another PR.
Outstanding things:
org.apache.maven:maven-artifact:3.9.6
(Apache 2)