Skip to content

Commit

Permalink
[osgi] Solutions for eclipse/microprofile#33
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Auge <[email protected]>
  • Loading branch information
rotty3000 committed Sep 8, 2018
1 parent 3346176 commit 14c92a5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
23 changes: 23 additions & 0 deletions api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
-exportcontents: \
org.eclipse.microprofile.*

Import-Package: \
javax.enterprise.util;-remove-attribute:=version,\
javax.interceptor;-remove-attribute:=version,\
javax.ws.rs.client;-remove-attribute:=version,\
*

Require-Capability: \
osgi.contract;\
osgi.contract=JavaCDI;\
filter:="(&(osgi.contract=JavaCDI)(version=${cdi.api.version}))",\
osgi.contract;\
osgi.contract=JavaInterceptor;\
filter:="(&(osgi.contract=JavaInterceptor)(version=${interceptor.api.version}))",\
osgi.contract;\
osgi.contract=JavaJAXRS;\
filter:="(&(osgi.contract=JavaJAXRS)(version=${jaxrs.api.version}))",\
osgi.serviceloader;\
filter:="(osgi.serviceloader=org.eclipse.microprofile.opentracing.ClientTracingRegistrarProvider)";\
cardinality:=multiple,\
osgi.extender;\
filter:="(osgi.extender=osgi.serviceloader.processor)"

Bundle-SymbolicName: org.eclipse.microprofile.opentracing
Bundle-Name: MicroProfile OpenTracing Bundle
Bundle-License: Apache License, Version 2.0
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>2.4.1</version>
<version>3.4.0</version>

<executions>
<execution>
Expand Down
8 changes: 5 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
<version.mp.config>1.3</version.mp.config>
<!-- Versions of API dependencies -->
<osgi-annotation.version>1.0.0</osgi-annotation.version>

<cdi.api.version>1.2</cdi.api.version>
<interceptor.api.version>1.1</interceptor.api.version>
<jaxrs.api.version>2.0</jaxrs.api.version>
</properties>

<licenses>
Expand Down Expand Up @@ -99,13 +101,13 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
<version>${cdi.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
<version>${jaxrs.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 14c92a5

Please sign in to comment.