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 8a5f444 commit 535e8ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 18 additions & 0 deletions api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
-exportcontents: \
org.eclipse.microprofile.*

Import-Package: \
javax.enterprise.*;-remove-attribute:=version, \
javax.inject;-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=JavaInject;\
filter:="(&(osgi.contract=JavaInject)(version=${inject.api.version}))",\
osgi.contract;\
osgi.contract=JavaInterceptor;\
filter:="(&(osgi.contract=JavaInterceptor)(version=${interceptor.api.version}))"

Bundle-SymbolicName: org.eclipse.microprofile.metrics
Bundle-Name: MicroProfile Metrics Bundle
Bundle-License: Apache License, Version 2.0
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@

<checkstyle.version>2.17</checkstyle.version>
<checkstyle.methodNameFormat>^_?[a-z][a-zA-Z0-9]*$</checkstyle.methodNameFormat>
<cdi-version>1.2</cdi-version>
<autorelease>false</autorelease>
<cdi.api.version>1.2</cdi.api.version>
<inject.api.version>1</inject.api.version>
<interceptor.api.version>1.1</interceptor.api.version>
</properties>

<licenses>
Expand Down Expand Up @@ -92,7 +94,7 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>${cdi-version}</version>
<version>${cdi.api.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
Expand Down

0 comments on commit 535e8ad

Please sign in to comment.