]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Update to io.grcp 1.21.0 and protobuf 3.7.1 56/2956/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 19 Jun 2019 11:00:03 +0000 (14:00 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Wed, 19 Jun 2019 11:00:03 +0000 (14:00 +0300)
GRPC is available via third-party repo.

gitlab #308

Change-Id: I17261abf736782a055f0d6e580052079335d09a8

releng/org.simantics.sdk.build.p2.site/pom.xml

index 6267ace057cf99a3c0b4a769eca5cae95f03dc55..11f07b95c7d83c8513e5b88636b8013d52fdb2a6 100644 (file)
                                     <id>org.eclipse.jetty:jetty-servlets:9.4.5.v20170502</id>
                                     <source>true</source>
                                 </artifact>
+                                                               <!-- Since 1.21.0 grpc, a manually set up plugin is provided in third-party repository.
+                                                                    Note: grpc-core, grpc-context, and grpc-stub (maybe others as well) must be bundled into same plug-in, since they contain split packages.
                                 <artifact>
                                     <id>io.grpc:grpc-core:${grpc.version}</id>
                                     <source>true</source>
                                     <source>true</source>
                                                                        <override>true</override>
                                     <instructions>
-                                                                           <!--
-                                        <Require-Bundle>
-                                             io.netty.buffer;bundle-version="4.1.34.Final",
-                                             io.netty.codec;bundle-version="4.1.34.Final",
-                                             io.netty.codec-http;bundle-version="4.1.34.Final",
-                                             io.netty.codec-http2;bundle-version="4.1.34.Final",
-                                             io.netty.codec-socks;bundle-version="4.1.34.Final",
-                                             io.netty.common;bundle-version="4.1.34.Final",
-                                             io.netty.handler;bundle-version="4.1.34.Final",
-                                             io.netty.handler-proxy;bundle-version="4.1.34.Final",
-                                             io.netty.resolver;bundle-version="4.1.34.Final",
-                                             io.netty.transport;bundle-version="4.1.34.Final",
-                                             io.grpc
-                                        </Require-Bundle>
-                                                                               -->
-                                                                               <Require-Bundle>
+                                                                           <Require-Bundle>
                                                                                   io.grpc.core
                                                                                </Require-Bundle>
                                         <Import-Package>!io.netty.*,*;resolution:=optional</Import-Package>
                                         <Bundle-Version>${grpc.version.actual}</Bundle-Version>
                                     </instructions>
                                 </artifact>
+                                                               -->
                                                                <!-- This was needed with old io.grpc / protobuf
                                 <artifact>
                                     <id>com.google.protobuf:protobuf-java:${protobuf.version}</id>
                                     </instructions>
                                 </artifact>
                                                                -->
+                                                               <!-- grpc 1.21.0 dependencies -->
+                                                               <artifact>
+                                    <id>io.opencensus:opencensus-api:0.21.0</id>
+                                    <source>true</source>
+                                                               </artifact>
+                                                               <artifact>
+                                    <id>com.google.code.gson:gson:2.7</id>
+                                    <source>true</source>
+                                                               </artifact>
+                                                               <artifact>
+                                    <id>com.google.android:annotations:4.1.1.4</id>
+                                    <source>true</source>
+                                                               </artifact>
+                                                               <artifact>
+                                    <id>io.opencensus:opencensus-contrib-grpc-metrics:0.21.0</id>
+                                    <source>true</source>
+                                                               </artifact>
+                                                               <artifact>
+                                    <id>com.google.protobuf:protobuf-java:3.7.1</id>
+                                    <source>true</source>
+                                </artifact>
+                                                               <artifact>
+                                    <id>com.google.api.grpc:proto-google-common-protos:1.12.0</id>
+                                    <source>true</source>
+                                </artifact>
+                                                               <artifact>
+                                    <id>com.google.errorprone:error_prone_annotations:2.3.2</id>
+                                    <source>true</source>
+                                </artifact>
                             </artifacts>
                         </configuration>
                     </execution>