From 9c0169748aba56242c74348f83ee8fbd5f3f7679 Mon Sep 17 00:00:00 2001 From: Piotr Morgwai Kotarbinski Date: Sat, 8 May 2021 15:21:53 +0700 Subject: [PATCH] Cleanup and refresh maven pom.xml files It was impossible to build a project using grpcweb-java due to multiple enforcer errors. Fixing grpcweb-java broke examples hence these had to be cleaned as well. --- .gitignore | 4 + .../grpc-web-java/greeter-service/pom.xml | 60 ++++++++----- .../interop-test-service/pom.xml | 54 +++++++---- src/connector/pom.xml | 89 ++++++------------- 4 files changed, 110 insertions(+), 97 deletions(-) diff --git a/.gitignore b/.gitignore index 517590e..197f868 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ bazel-testlogs *.o protoc-gen-* .DS_Store +target +.project +.classpath +.settings diff --git a/net/grpc/gateway/examples/grpc-web-java/greeter-service/pom.xml b/net/grpc/gateway/examples/grpc-web-java/greeter-service/pom.xml index 492be75..7e507d5 100644 --- a/net/grpc/gateway/examples/grpc-web-java/greeter-service/pom.xml +++ b/net/grpc/gateway/examples/grpc-web-java/greeter-service/pom.xml @@ -15,21 +15,13 @@ UTF-8 1.7 1.7 + 1.30.0 + 3.12.0 7080 8080 - - com.google.protobuf - protobuf-java - 3.11.4 - - - junit - junit - 4.13.1 - io.grpcweb grpcweb-java @@ -40,6 +32,26 @@ fluent-hc 4.5.12 + + org.apache.tomcat + annotations-api + 6.0.53 + provided + + + + io.grpc + grpc-netty-shaded + ${grpc.version} + runtime + + + + junit + junit + 4.13.2 + test + @@ -54,11 +66,11 @@ org.xolstice.maven.plugins protobuf-maven-plugin - 0.5.0 + 0.6.1 - com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier} + com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} grpc-java - io.grpc:protoc-gen-grpc-java:1.7.0:exe:${os.detected.classifier} + io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier} @@ -87,14 +99,22 @@ org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - + maven-enforcer-plugin + 1.4.1 + + + enforce + + enforce + + + + + + + + - diff --git a/net/grpc/gateway/examples/grpc-web-java/interop-test-service/pom.xml b/net/grpc/gateway/examples/grpc-web-java/interop-test-service/pom.xml index eed1a81..a685ed2 100644 --- a/net/grpc/gateway/examples/grpc-web-java/interop-test-service/pom.xml +++ b/net/grpc/gateway/examples/grpc-web-java/interop-test-service/pom.xml @@ -15,21 +15,36 @@ UTF-8 1.7 1.7 + 1.30.0 + 3.12.0 7080 8080 - com.google.protobuf - protobuf-java - 3.11.4 + io.grpc + grpc-core + ${grpc.version} io.grpcweb grpcweb-java 0.1-SNAPSHOT + + org.apache.tomcat + annotations-api + 6.0.53 + provided + + + + io.grpc + grpc-netty-shaded + ${grpc.version} + runtime + @@ -44,11 +59,11 @@ org.xolstice.maven.plugins protobuf-maven-plugin - 0.5.0 + 0.6.1 - com.google.protobuf:protoc:3.4.0:exe:${os.detected.classifier} + com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier} grpc-java - io.grpc:protoc-gen-grpc-java:1.7.0:exe:${os.detected.classifier} + io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier} @@ -88,9 +103,7 @@ - - grpcweb.examples.StartServiceAndGrpcwebProxy - + grpcweb.examples.StartServiceAndGrpcwebProxy @@ -102,15 +115,22 @@ org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - + maven-enforcer-plugin + 1.4.1 + + + enforce + + enforce + + + + + + + + - - diff --git a/src/connector/pom.xml b/src/connector/pom.xml index 5a37880..351d5a4 100644 --- a/src/connector/pom.xml +++ b/src/connector/pom.xml @@ -7,104 +7,73 @@ io.grpcweb grpcweb-java 0.1-SNAPSHOT - grpcweb-java + Java gRPC-web in-process proxy UTF-8 1.7 1.7 + 1.30.0 + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + + - com.google.guava - guava - 27.0.1-jre - - - com.google.protobuf - protobuf-java - 3.11.4 + org.eclipse.jetty + jetty-server + 9.4.40.v20210413 org.eclipse.jetty - jetty-maven-plugin - 9.4.32.v20200930 - - - org.eclipse.jetty - jetty-servlets - 9.4.32.v20200930 + jetty-servlet + 9.4.40.v20210413 commons-io commons-io - 2.6 + 2.8.0 org.apache.commons commons-lang3 - 3.10 - - - io.grpc - grpc-netty-shaded - 1.27.1 + 3.12.0 io.grpc grpc-protobuf - 1.27.1 io.grpc grpc-stub - 1.27.1 + + com.google.inject + guice + 4.2.3 + + junit junit - 4.13.1 + 4.13.2 test com.google.truth truth - 1.0.1 + 1.1.2 test - - com.google.inject - guice - 4.1.0 - - - - - - kr.motd.maven - os-maven-plugin - 1.6.2 - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - 1.8 - 1.8 - - - - - -