Skip to content

Commit

Permalink
[MRESOLVER-571] Import o.e.aether packages with the exact same version
Browse files Browse the repository at this point in the history
The documentation states that only maven-resolver artifacts of the exact
same version should be used together.

With this change all org.eclipse.aether* packages are now imported with
a strict version range of
'org.eclipse.aether*;version="[@Version,@Version]"'

Fixes https://issues.apache.org/jira/browse/MRESOLVER-571
  • Loading branch information
iils-hwellmann authored and gnodet committed Jul 1, 2024
1 parent d0edd79 commit d4bd991
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,15 @@
*.impl.*;x-internal:=true, \
*.internal.*;x-internal:=true, \
*
# Mark optional Maven dependencies as optional
# Ensure all maven-resolver packages of exactly the same version are imported
# and mark optional Maven dependencies as optional.
mavenResolverVersion=${versionmask;===;${version_cleanup;${project.version}}}
Import-Package: \
org.eclipse.aether*;version="${range;[===,===];${mavenResolverVersion}}", \
javax.inject*;resolution:=optional, \
*
# No re-import of exported packages
-noimport:=true
# Reproducible build
-noextraheaders: true
${bnd.instructions.additions}
Expand Down

0 comments on commit d4bd991

Please sign in to comment.