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

Manifest of shaded jar lacks multi-release header #233

Open
marschall opened this issue Dec 21, 2022 · 0 comments
Open

Manifest of shaded jar lacks multi-release header #233

marschall opened this issue Dec 21, 2022 · 0 comments

Comments

@marschall
Copy link

Describe the bug
The manifest of the JMH jar containing the JMH runtime and the compiled benchmark classes lacks a Multi-Release header when one of the dependencies is a multi-release JAR. This makes the JMH jar no longer a multi-release JAR, thus disables the multi-release mechanism, thus breaking these dependencies.

To Reproduce
Steps to reproduce the behavior:

  1. Add a dependency to a multi-release JAR. eg. ch.randelshofer:fastdoubleparser:0.5.4
  2. Build the JMH jar.
  3. Look at the manifest of the JMH jar, eg. unzip -q -c build/libs/${artifact}-${version}-jmh.jar META-INF/MANIFEST.MF

The manifest looks like this

Manifest-Version: 1.0
Main-Class: org.openjdk.jmh.Main

It lacks a multi-release entry

Multi-Release: true
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

No branches or pull requests

1 participant