Skip to content

Commit

Permalink
[MRESOLVER-571] Fix usage of '-noimport' directive on exports
Browse files Browse the repository at this point in the history
  • Loading branch information
iils-hwellmann authored and gnodet committed Jul 1, 2024
1 parent d4bd991 commit a65450f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -609,20 +609,18 @@
<bnd><![CDATA[
Bundle-SymbolicName: org.apache.${replacestring;${project.artifactId};-;.}
Automatic-Module-Name: ${Bundle-SymbolicName}
# Export packages not containing the substring 'internal'
# Export packages, but don't re-import own packages
-exportcontents: \
*.impl.*;x-internal:=true, \
*.internal.*;x-internal:=true, \
*
*.impl.*;x-internal:=true;-noimport:=true, \
*.internal.*;x-internal:=true;-noimport:=true, \
*;-noimport:=true
# 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 a65450f

Please sign in to comment.