Skip to content

Commit

Permalink
NMS-16180: Update grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
cgorantla committed Sep 18, 2024
1 parent 5db773d commit 3a2c2f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
3 changes: 2 additions & 1 deletion container/features/src/main/resources/features-minion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@
<feature>dropwizard-metrics</feature>
<feature>opennms-core-ipc-sink-api</feature>
<feature>opennms-core-ipc-rpc-api</feature>
<bundle>mvn:org.opennms.core.grpc/org.opennms.core.grpc.osgi/${project.version}</bundle>
<bundle>wrap:mvn:org.opennms.core.grpc/org.opennms.core.grpc.osgi/${project.version}$overwrite=merge&amp;Karaf-Commands=none</bundle>
<bundle>mvn:com.google.protobuf/protobuf-java/${protobufVersion}</bundle>
<bundle>mvn:org.opennms.core.ipc.grpc/org.opennms.core.ipc.grpc.common/${project.version}</bundle>
<bundle>mvn:org.opennms.core.ipc.grpc/org.opennms.core.ipc.grpc.client/${project.version}</bundle>
<feature>opennms-core-ipc-twin-grpc-subscriber</feature>
Expand Down
35 changes: 15 additions & 20 deletions core/grpc/osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@
<version>${maven.shade.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<artifactSet>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
</filter>
</filters>
<createDependencyReducedPom>true</createDependencyReducedPom>
</configuration>
</execution>
Expand All @@ -46,13 +39,14 @@
<configuration>
<instructions>
<Import-Package>
com.google.protobuf;version="[3.19,5)",
javax.net,
javax.net.ssl,
javax.security.cert,
javax.security.auth.x500,
</Import-Package>
<Export-Package>
com.google.protobuf,
io.grpc,
<Export-Package>io.grpc,
io.grpc.core,
io.grpc.stub,
io.grpc.protobuf,
io.grpc.internal,
Expand All @@ -72,7 +66,7 @@
<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<artifactId>grpc-core</artifactId>
<version>${grpcVersion}</version>
</dependency>
<dependency>
Expand All @@ -84,21 +78,22 @@
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>${grpcVersion}</version>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>${grpcVersion}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guavagRPCVersion}</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobufVersion}</version>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>${grpcVersion}</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@
<geoipVersion>2.15.0</geoipVersion>
<geronimoVersion>1.1.1</geronimoVersion>
<groovyVersion>3.0.21</groovyVersion>
<grpcVersion>1.46.0</grpcVersion>
<grpcVersion>1.66.0</grpcVersion>
<gsonVersion>2.9.1</gsonVersion>
<guavaVersion>31.1-jre</guavaVersion>
<guava32Version>32.1.3-jre</guava32Version>
Expand Down

0 comments on commit 3a2c2f2

Please sign in to comment.