Consolidate gRPC OSGi bundle handling
Change-Id: I01e5058e08372b142058769db081b8de154e1c9b
diff --git a/incubator/rpc-grpc/features.xml b/incubator/rpc-grpc/features.xml
index 4061b6e..e643647 100644
--- a/incubator/rpc-grpc/features.xml
+++ b/incubator/rpc-grpc/features.xml
@@ -17,26 +17,8 @@
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.1" name="${project.artifactId}-${project.version}">
<feature name="${project.artifactId}" version="${project.version}"
description="${project.description}">
- <feature>onos-api</feature>
- <bundle>mvn:com.google.protobuf/protobuf-java/3.0.0</bundle>
- <bundle>mvn:io.netty/netty-common/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-buffer/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-transport/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-handler/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-codec/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-codec-http/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-codec-http2/4.1.3.Final</bundle>
- <bundle>mvn:io.netty/netty-resolver/4.1.3.Final</bundle>
- <!-- TODO: Create shaded jar for these. -->
- <bundle>wrap:mvn:com.google.auth/google-auth-library-credentials/0.4.0$Bundle-SymbolicName=com.google.auth.google-auth-library-credentials&Bundle-Version=0.4.0</bundle>
- <bundle>wrap:mvn:com.google.auth/google-auth-library-oauth2-http/0.4.0$Bundle-SymbolicName=com.google.auth.google-auth-library-oauth2-http&Bundle-Version=0.4.0</bundle>
- <!-- io.grpc.internal required for DnsNameResolverProvider -->
- <bundle>wrap:mvn:io.grpc/grpc-core/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-core&Bundle-Version=1.0.0&Export-Package=*;version=1.0.0,io.grpc.internal;version=1.0.0&</bundle>
- <bundle>wrap:mvn:io.grpc/grpc-protobuf-lite/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-protobuf-lite&Bundle-Version=1.0.0&</bundle>
- <bundle>wrap:mvn:io.grpc/grpc-protobuf/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-protobuf&Bundle-Version=1.0.0&</bundle>
- <bundle>wrap:mvn:io.grpc/grpc-stub/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-stub&Bundle-Version=1.0.0&</bundle>
- <bundle>wrap:mvn:io.grpc/grpc-netty/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-netty&Bundle-Version=1.0.0&Import-Package=io.netty.*;version=4.1.3,*</bundle>
- <bundle>wrap:mvn:io.grpc/grpc-auth/1.0.0-pre2$Bundle-SymbolicName=io.grpc.grpc-auth&Bundle-Version=1.0.0&Import-Package=javax.net.ssl,*</bundle>
+ <feature version="${project.version}">onos-api</feature>
+
<bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle>
</feature>
</features>