Skip to content

Commit 2e6a957

Browse files
author
Raymond Auge
committed
[osgi] Solutions for microprofile/microprofile#33
Signed-off-by: Raymond Auge <raymond.auge@liferay.com>
1 parent d9b0c34 commit 2e6a957

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

api/bnd.bnd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
-exportcontents: \
22
org.eclipse.microprofile.*
3+
4+
Import-Package: \
5+
javax.enterprise.*;-remove-attribute:=version, \
6+
javax.inject;-remove-attribute:=version,\
7+
javax.json;-remove-attribute:=version,\
8+
*
9+
10+
Require-Capability: \
11+
osgi.contract;\
12+
osgi.contract=JavaCDI;\
13+
filter:="(&(osgi.contract=JavaCDI)(version=${cdi.api.version}))",\
14+
osgi.contract;\
15+
osgi.contract=JavaInject;\
16+
filter:="(&(osgi.contract=JavaInject)(version=${inject.api.version}))",\
17+
osgi.contract;\
18+
osgi.contract=JavaJSONP;\
19+
filter:="(&(osgi.contract=JavaJSONP)(version=${jsonp.api.version}))"
20+
321
Bundle-SymbolicName: org.eclipse.microprofile.jwt
422
Bundle-Name: MicroProfile JWT Auth Bundle
523
Bundle-License: Apache License, Version 2.0

pom.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
<checkstyle.version>2.17</checkstyle.version>
3434
<checkstyle.methodNameFormat>^_?[a-z][a-zA-Z0-9]*$</checkstyle.methodNameFormat>
3535
<autorelease>false</autorelease>
36+
<cdi.api.version>1.1</cdi.api.version>
37+
<inject.api.version>1</inject.api.version>
38+
<jsonp.api.version>1.0</jsonp.api.version>
3639
</properties>
3740

3841
<licenses>
@@ -93,11 +96,14 @@
9396
<dependencyManagement>
9497
<dependencies>
9598
<dependency>
96-
<groupId>javax</groupId>
97-
<artifactId>javaee-api</artifactId>
98-
<type>pom</type>
99-
<version>7.0</version>
100-
<scope>import</scope>
99+
<groupId>javax.enterprise</groupId>
100+
<artifactId>cdi-api</artifactId>
101+
<version>${cdi.api.version}</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>javax.json</groupId>
105+
<artifactId>json-api</artifactId>
106+
<version>${jsonp.api.version}</version>
101107
</dependency>
102108
<dependency>
103109
<groupId>org.jboss.arquillian</groupId>

0 commit comments

Comments
 (0)