diff --git a/api/bnd.bnd b/api/bnd.bnd index 2aad193a..cb93d5c3 100644 --- a/api/bnd.bnd +++ b/api/bnd.bnd @@ -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 \ No newline at end of file diff --git a/pom.xml b/pom.xml index e39e403f..3e7f1869 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,9 @@ 2.17 ^_?[a-z][a-zA-Z0-9]*$ false + 1.1 + 1 + 1.0 @@ -93,11 +96,14 @@ - javax - javaee-api - pom - 7.0 - import + javax.enterprise + cdi-api + ${cdi.api.version} + + + javax.json + json-api + ${jsonp.api.version} org.jboss.arquillian