Repository navigation
Remove transitive modifier from optional dependencies - #2930
Merged
Merged
Conversation
transitive modifier from optional dependencies
vy
reviewed
Sep 8, 2024
vy
left a comment
Member
There was a problem hiding this comment.
Question: Shouldn't we instead
- enforce a whitelist of
staticdependencies (so every optional will need to be a conscious decision, not a mistake) and - ban
transitive static?
Member
Author
I am not sure whether to whitelist our optional dependencies or all our runtime dependencies. In general there is a mismatch between the scope of Maven dependencies and the OSGi and JPMS optionality. In general the agreement is that BND should not automatically mark as optional the packages in optional Maven dependencies (see bndtools/bnd#2713), but I believe it could at least warn about required packages, which are optional Maven dependencies. |
vy
reviewed
Sep 12, 2024
This adds a Groovy script that fails the build if any optional JPMS module has the `transitive` qualifier. We remove the `transitive` modifier from all optional dependencies. Closes #2929. Co-authored-by: Volkan Yazıcı <[email protected]>
ppkarwasz
force-pushed
the
feature/2.x/2929_remove_transitive_static
branch
from
September 12, 2024 19:18
3c6d9d4 to
c7a59eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR:
module-info.classfiles forstatic transitivedependencies.org.jspecifyastransitive.We remove the
transitivemodifier from all optional dependencies.Closes #2929.
Note: Once these changes are accepted, I'll move the Groovy script to
logging-parentand implement apache/logging-parent#196 too.