Skip to content

Disable -jpms-multi-release BND option - #96

Merged
ppkarwasz merged 5 commits into
apache:mainfrom
ppkarwasz:93_disable_jpms_multi_release
Jan 11, 2024
Merged

ppkarwasz merged 5 commits into
apache:mainfrom
ppkarwasz:93_disable_jpms_multi_release

Conversation

@ppkarwasz

@ppkarwasz ppkarwasz commented Jan 10, 2024 •

Copy link
Copy Markdown
Member

Due to limitations of BND 6.x and the build process of our multi-release JARs, this option was never effective.

We could reenable it in multi-release JARs that have a difference in package and module dependencies between Java versions.

Closes #93.

@ppkarwasz
ppkarwasz force-pushed the 93_disable_jpms_multi_release branch 2 times, most recently from eaed378 to fb6252c Compare January 10, 2024 19:39
@ppkarwasz ppkarwasz self-assigned this Jan 10, 2024

@vy vy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. I will appreciate it if we can drop a comment for those who later might attempt to place -jpms-multi-release option back again.

Comment thread pom.xml
ppkarwasz and others added 5 commits January 11, 2024 10:31
Add rule to ban wildcard imports. Wildcard imports are often the only
difference between branches and they can not easily be expanded by
Spotless.

Fixes #63.
This adds [`jspecify`](https://jspecify.dev/) to the dependency
management, a common effort of multiple Java tool developers to provide
a common set of nullability annotations.

Fixes apache#88.
We add a `maven-clean-plugin` execution to remove any trailing
`module-info.class` files before each compilation.

Such files can cause problem like in:

https://github.com/copernik-eu/bug-reproducibility/tree/main/javac-module-info-bug
Due to limitations of BND 6.x and the build process of our multi-release
JARs, this option was never effective.

We could reenable it in multi-release JARs that have a difference in
package and module dependencies between Java versions.
Co-authored-by: Volkan Yazıcı <[email protected]>
@ppkarwasz
ppkarwasz force-pushed the 93_disable_jpms_multi_release branch from b2562fa to e789acd Compare January 11, 2024 09:35
@ppkarwasz
ppkarwasz merged commit e789acd into apache:main Jan 11, 2024
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.

Evaluate -jpms-multi-release BND parameter

2 participants