Skip to content

Commit

Permalink
Merge pull request #5264 from bjhargrave/decoration-phase-3
Browse files Browse the repository at this point in the history
build: Remove use of "{xxx}" non-literals on + decorations
  • Loading branch information
bjhargrave committed May 25, 2022
2 parents 0764a10 + 26edfe2 commit 79aa1be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions cnf/build.bnd
Expand Up @@ -28,23 +28,20 @@ Bundle-Version: ${base.version}.${tstamp}-SNAPSHOT
-diffignore: Bundle-Version

# Decorations
# We use non-literals, "{xxx}", to make sure we don't force the dependency onto
# the instruction

-buildpath+: \
"{aQute.libg}";version=project;packages="!aQute.lib.exceptions.*,*",\
"{osgi.annotation}";~version=latest;~maven-scope=provided,\
"{osgi.core}";~version=latest;~maven-scope=provided,\
"aQute.libg";version=project;packages="!aQute.lib.exceptions.*,*",\
"osgi.annotation";~version=latest;~maven-scope=provided,\
"osgi.core";~version=latest;~maven-scope=provided,\
"org.osgi.namespace.*";~version=latest;~maven-scope=provided,\
"org.osgi.service.*.annotations";~version=latest;~maven-scope=provided

-conditionalpackage++: \
=!aQute.lib.exceptions.*

-testpath+: \
"{aQute.libg}";version=project;packages="!aQute.lib.exceptions.*,*",\
"{osgi.annotation}";~version=latest,\
"{osgi.core}";~version=latest,\
"aQute.libg";version=project;packages="!aQute.lib.exceptions.*,*",\
"osgi.annotation";~version=latest,\
"osgi.core";~version=latest,\
"org.osgi.namespace.*";~version=latest,\
"org.osgi.service.*.annotations";~version=latest

Expand Down
2 changes: 1 addition & 1 deletion cnf/includes/bndtools.bnd
Expand Up @@ -9,4 +9,4 @@ eclipse.importpackage: \
org.eclipse.*;bundle-symbolic-name="${@bundlesymbolicname}";bundle-version="${range;[==,+);${@bundleversion}}";version=!;ui.workbench=!;common=!;registry=!;texteditor=!;text=!

# Decorate Equinox OSGi framework dependency
-buildpath+.equinox: "{org.eclipse.osgi}";maven-scope=provided
-buildpath+.equinox: "org.eclipse.osgi";maven-scope=provided

0 comments on commit 79aa1be

Please sign in to comment.