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

JlinkPlugin: support multi-release dependencies #1244

Merged
merged 3 commits into from
Jul 10, 2019

Conversation

nigredo-tori
Copy link
Collaborator

Closes #1243 .

  1. Changed the plugin to parse JDK's release file and get the value of JAVA_VERSION property. The "useful" part of the version number (e.g. 11 for 11.0.3, or 9 for 1.9.0), is then passed to jdeps (--multi-release).
  2. Added a scripted test project for this. There's a bit of over-engineering here, so that in the future we don't have to add a whole test project for simple chages like this.
  3. Changed the way we run Java tools, so that in case of an error the output is dumped to the SBT log.

Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your ongoing work on this plugin 🤗

The code, comments and tests have an amazing quality ❤️ I'll release this ASAP.

autoScalaLibrary in ThisBuild := false

// Should succeed for multi-release artifacts
val issue1243 = project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I quite like this naming convention for the projects!

@muuki88 muuki88 merged commit 6e6eca0 into sbt:master Jul 10, 2019
@nigredo-tori nigredo-tori deleted the jdeps-multi-release branch July 11, 2019 01:58
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.

JlinkPlugin: support multi-release dependencies
2 participants