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 bbcd148 commit cd63d2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
-exportcontents: \
org.eclipse.microprofile.*

Import-Package: \
javax.enterprise.util;version="[1.1,3)", \
javax.enterprise.util;-remove-attribute:=version,\
javax.interceptor;-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}))"

Bundle-SymbolicName: org.eclipse.microprofile.fault.tolerance
Bundle-Name: MicroProfile Fault Tolerance Bundle
Bundle-License: Apache License, Version 2.0
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<autorelease>false</autorelease>
<!-- keeping closed repos with failure - default is false because the errors are visible in the maven output, but true will leave the repo open for investigation in Sonatype Nexus -->
<keepStagingReposOnFailure>false</keepStagingReposOnFailure>
<cdi.api.version>1.2</cdi.api.version>
<interceptor.api.version>1.1</interceptor.api.version>
</properties>

<licenses>
Expand Down Expand Up @@ -100,7 +102,7 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
<version>${cdi.api.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit cd63d2b

Please sign in to comment.