-
Notifications
You must be signed in to change notification settings - Fork 44
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: do not create /bin/java symlink #752
Conversation
Maven and Ant plugin should not create /bin/java symlink
Ant and Maven plugins override build commands of craft-parts Ant and Maven plugins.
- add smoke tests for maven and ant plugins.
- drop unneeded property - add ant plugin targets
@vpa1977 I'll review this on Thursday (I'm OOO until then) |
- use package installation to ensure /usr/bin/java is present - run jlink to replace modules
- we have not merged JAVA_HOME fix yet, so do basic tests that plugin works
- we still have to create java symlink in rockcraft yaml - the test image is fixed for amd64, so its ok to hardcode path in task.yaml
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.
thanks! Some minor comments but this is pretty close to approved
@linostar please take a look |
Reuse common docs for maven and ant plugins.
ant test had part named 'maven-sample'.
Validate that /bin/java is a valid command
craft-parts ant plugin description has too long lines.
I have added: canonical/craft-parts#916 so that I could make documentation override less horrible in the followup PR. |
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.
thanks!
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.
LGTM, thanks!
This PR overrides maven and ant plugin to avoid creating /bin/java symlink : canonical/craft-parts#813
This allows to use those plugins to build rocks.
The plugins still need to set JAVA_HOME manually which is addressed by canonical/craft-parts#895
Raised #754 to address the linter error.