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 Aug 30, 2018
1 parent d9b0c34 commit 2e6a957
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 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.json;-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=JavaJSONP;\
filter:="(&(osgi.contract=JavaJSONP)(version=${jsonp.api.version}))"

Bundle-SymbolicName: org.eclipse.microprofile.jwt
Bundle-Name: MicroProfile JWT Auth Bundle
Bundle-License: Apache License, Version 2.0
16 changes: 11 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<checkstyle.version>2.17</checkstyle.version>
<checkstyle.methodNameFormat>^_?[a-z][a-zA-Z0-9]*$</checkstyle.methodNameFormat>
<autorelease>false</autorelease>
<cdi.api.version>1.1</cdi.api.version>
<inject.api.version>1</inject.api.version>
<jsonp.api.version>1.0</jsonp.api.version>
</properties>

<licenses>
Expand Down Expand Up @@ -93,11 +96,14 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<type>pom</type>
<version>7.0</version>
<scope>import</scope>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>${cdi.api.version}</version>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>json-api</artifactId>
<version>${jsonp.api.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
Expand Down

0 comments on commit 2e6a957

Please sign in to comment.