mirror of https://github.com/grpc/grpc-java.git
Upgrade Protobuf Java to 3.22.3 (aka 22.3)
The version used by protoc-gen-grpc-java will be upgraded separately, because of large C++ build changes necessary. But that won't impact users at all. We are upgrading to protoc 22.3; only the grpc plugin is not upgraded. Bazel is upgraded for both Java and C++.
This commit is contained in:
parent
bcbdb205b5
commit
1551cc7403
|
@ -36,6 +36,7 @@ evaluationDependsOn(':grpc-interop-testing')
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api subprojects.minus([project(':grpc-protobuf-lite')])
|
api subprojects.minus([project(':grpc-protobuf-lite')])
|
||||||
|
implementation libraries.guava.jre // JRE required by transitive protobuf-java-util
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("javadoc").configure {
|
tasks.named("javadoc").configure {
|
||||||
|
|
|
@ -19,7 +19,7 @@ dependencies {
|
||||||
project(':grpc-stub'),
|
project(':grpc-stub'),
|
||||||
libraries.protobuf.java,
|
libraries.protobuf.java,
|
||||||
libraries.conscrypt,
|
libraries.conscrypt,
|
||||||
libraries.guava,
|
libraries.guava.jre, // JRE required by protobuf-java-util from grpclb
|
||||||
libraries.google.auth.oauth2Http
|
libraries.google.auth.oauth2Http
|
||||||
def nettyDependency = implementation project(':grpc-netty')
|
def nettyDependency = implementation project(':grpc-netty')
|
||||||
compileOnly libraries.javax.annotation
|
compileOnly libraries.javax.annotation
|
||||||
|
|
|
@ -11,7 +11,8 @@ description = "gRPC: Authorization"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':grpc-protobuf'),
|
implementation project(':grpc-protobuf'),
|
||||||
project(':grpc-core')
|
project(':grpc-core'),
|
||||||
|
libraries.guava.jre // JRE required by transitive protobuf-java-util
|
||||||
|
|
||||||
annotationProcessor libraries.auto.value
|
annotationProcessor libraries.auto.value
|
||||||
compileOnly libraries.javax.annotation
|
compileOnly libraries.javax.annotation
|
||||||
|
|
|
@ -147,6 +147,7 @@ public abstract class AbstractConfigurationBuilder<T extends Configuration>
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings("InlineMeInliner") // String.repeat() requires Java 11
|
||||||
public final void printUsage() {
|
public final void printUsage() {
|
||||||
System.out.println("Usage: [ARGS...]");
|
System.out.println("Usage: [ARGS...]");
|
||||||
int column1Width = 0;
|
int column1Width = 0;
|
||||||
|
@ -210,6 +211,7 @@ public abstract class AbstractConfigurationBuilder<T extends Configuration>
|
||||||
return "--" + name + type;
|
return "--" + name + type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("InlineMeInliner") // String.repeat() requires Java 11
|
||||||
private static String wordWrap(String text, int startPos, int maxPos) {
|
private static String wordWrap(String text, int startPos, int maxPos) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
int pos = startPos;
|
int pos = startPos;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
|
|
@ -28,6 +28,8 @@ load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
|
||||||
|
|
||||||
grpc_java_repositories()
|
grpc_java_repositories()
|
||||||
|
|
||||||
|
# Protobuf now requires C++14 or higher, which requires Bazel configuration
|
||||||
|
# outside the WORKSPACE. See .bazelrc in this directory.
|
||||||
load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS")
|
load("@com_google_protobuf//:protobuf_deps.bzl", "PROTOBUF_MAVEN_ARTIFACTS")
|
||||||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
protoc { artifact = 'com.google.protobuf:protoc:3.21.7' }
|
protoc { artifact = 'com.google.protobuf:protoc:3.22.3' }
|
||||||
plugins {
|
plugins {
|
||||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
protoc { artifact = 'com.google.protobuf:protoc:3.21.7' }
|
protoc { artifact = 'com.google.protobuf:protoc:3.22.3' }
|
||||||
plugins {
|
plugins {
|
||||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
protoc { artifact = 'com.google.protobuf:protoc:3.21.7' }
|
protoc { artifact = 'com.google.protobuf:protoc:3.22.3' }
|
||||||
plugins {
|
plugins {
|
||||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
protobuf {
|
protobuf {
|
||||||
protoc { artifact = 'com.google.protobuf:protoc:3.21.7' }
|
protoc { artifact = 'com.google.protobuf:protoc:3.22.3' }
|
||||||
plugins {
|
plugins {
|
||||||
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protobufVersion = '3.21.7'
|
def protobufVersion = '3.22.3'
|
||||||
def protocVersion = protobufVersion
|
def protocVersion = protobufVersion
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -24,7 +24,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// grpc-alts transitively depends on grpc-netty-shaded, grpc-protobuf, and grpc-stub
|
// grpc-alts transitively depends on grpc-netty-shaded, grpc-protobuf, and grpc-stub
|
||||||
|
|
|
@ -24,7 +24,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protobufVersion = '3.21.7'
|
def protobufVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protoc.version>3.21.7</protoc.version>
|
<protoc.version>3.22.3</protoc.version>
|
||||||
<!-- required for jdk9 -->
|
<!-- required for jdk9 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
@ -55,6 +55,11 @@
|
||||||
<artifactId>grpc-netty-shaded</artifactId>
|
<artifactId>grpc-netty-shaded</artifactId>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency> <!-- prevent downgrade of version in protobuf-java-util from grpc-services -->
|
||||||
|
<groupId>com.google.guava</groupId>
|
||||||
|
<artifactId>guava</artifactId>
|
||||||
|
<version>31.1-jre</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
|
|
@ -24,7 +24,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protobufVersion = '3.21.7'
|
def protobufVersion = '3.22.3'
|
||||||
def protocVersion = protobufVersion
|
def protocVersion = protobufVersion
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protobuf.version>3.21.7</protobuf.version>
|
<protobuf.version>3.22.3</protobuf.version>
|
||||||
<!-- required for jdk9 -->
|
<!-- required for jdk9 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
|
@ -25,7 +25,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -22,7 +22,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protobufVersion = '3.21.7'
|
def protobufVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protoc.version>3.21.7</protoc.version>
|
<protoc.version>3.22.3</protoc.version>
|
||||||
<!-- required for jdk9 -->
|
<!-- required for jdk9 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
@ -55,6 +55,11 @@
|
||||||
<artifactId>grpc-netty-shaded</artifactId>
|
<artifactId>grpc-netty-shaded</artifactId>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency> <!-- prevent downgrade of version in protobuf-java-util from grpc-services -->
|
||||||
|
<groupId>com.google.guava</groupId>
|
||||||
|
<artifactId>guava</artifactId>
|
||||||
|
<version>31.1-jre</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
|
|
@ -23,7 +23,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protobufVersion = '3.21.7'
|
def protobufVersion = '3.22.3'
|
||||||
def protocVersion = protobufVersion
|
def protocVersion = protobufVersion
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protobuf.version>3.21.7</protobuf.version>
|
<protobuf.version>3.22.3</protobuf.version>
|
||||||
<protoc.version>3.21.7</protoc.version>
|
<protoc.version>3.22.3</protoc.version>
|
||||||
<!-- required for jdk9 -->
|
<!-- required for jdk9 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
|
@ -18,7 +18,7 @@ sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -18,7 +18,7 @@ sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -16,7 +16,7 @@ sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}",
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}",
|
||||||
|
|
|
@ -24,7 +24,7 @@ targetCompatibility = 1.8
|
||||||
// Feel free to delete the comment at the next line. It is just for safely
|
// Feel free to delete the comment at the next line. It is just for safely
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protoc.version>3.21.7</protoc.version>
|
<protoc.version>3.22.3</protoc.version>
|
||||||
<netty.tcnative.version>2.0.56.Final</netty.tcnative.version>
|
<netty.tcnative.version>2.0.56.Final</netty.tcnative.version>
|
||||||
<!-- required for jdk9 -->
|
<!-- required for jdk9 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
|
|
|
@ -24,7 +24,7 @@ targetCompatibility = 1.8
|
||||||
// updating the version in our release process.
|
// updating the version in our release process.
|
||||||
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
def grpcVersion = '1.55.0-SNAPSHOT' // CURRENT_GRPC_VERSION
|
||||||
def nettyTcNativeVersion = '2.0.56.Final'
|
def nettyTcNativeVersion = '2.0.56.Final'
|
||||||
def protocVersion = '3.21.7'
|
def protocVersion = '3.22.3'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
<grpc.version>1.55.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
||||||
<protobuf.version>3.21.7</protobuf.version>
|
<protobuf.version>3.22.3</protobuf.version>
|
||||||
<protoc.version>3.21.7</protoc.version>
|
<protoc.version>3.22.3</protoc.version>
|
||||||
<!-- required for JDK 8 -->
|
<!-- required for JDK 8 -->
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
@ -60,6 +60,11 @@
|
||||||
<artifactId>gson</artifactId>
|
<artifactId>gson</artifactId>
|
||||||
<version>2.9.0</version> <!-- prevent downgrade via protobuf-java-util -->
|
<version>2.9.0</version> <!-- prevent downgrade via protobuf-java-util -->
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.guava</groupId>
|
||||||
|
<artifactId>guava</artifactId>
|
||||||
|
<version>31.1-jre</version> <!-- prevent downgrade of version in protobuf-java-util -->
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.tomcat</groupId>
|
<groupId>org.apache.tomcat</groupId>
|
||||||
<artifactId>annotations-api</artifactId>
|
<artifactId>annotations-api</artifactId>
|
||||||
|
|
|
@ -37,7 +37,8 @@ dependencies {
|
||||||
libraries.opencensus.exporter.trace.stackdriver,
|
libraries.opencensus.exporter.trace.stackdriver,
|
||||||
project(':grpc-xds'), // Align grpc versions
|
project(':grpc-xds'), // Align grpc versions
|
||||||
project(':grpc-services'), // Align grpc versions
|
project(':grpc-services'), // Align grpc versions
|
||||||
('com.google.protobuf:protobuf-java:3.21.12'),
|
libraries.protobuf.java,
|
||||||
|
libraries.protobuf.java.util, // Use our newer version
|
||||||
('com.google.api.grpc:proto-google-common-protos:2.14.2'),
|
('com.google.api.grpc:proto-google-common-protos:2.14.2'),
|
||||||
('com.google.auth:google-auth-library-oauth2-http:1.16.0'),
|
('com.google.auth:google-auth-library-oauth2-http:1.16.0'),
|
||||||
('io.opencensus:opencensus-api:0.31.1'),
|
('io.opencensus:opencensus-api:0.31.1'),
|
||||||
|
|
|
@ -12,7 +12,7 @@ dependencies {
|
||||||
implementation project(':grpc-alts'),
|
implementation project(':grpc-alts'),
|
||||||
project(':grpc-core'),
|
project(':grpc-core'),
|
||||||
project(':grpc-xds'),
|
project(':grpc-xds'),
|
||||||
libraries.guava
|
libraries.guava.jre // JRE required by transitive protobuf-java-util
|
||||||
testImplementation project(':grpc-core').sourceSets.test.output
|
testImplementation project(':grpc-core').sourceSets.test.output
|
||||||
|
|
||||||
signature libraries.signature.java
|
signature libraries.signature.java
|
||||||
|
|
|
@ -8,7 +8,7 @@ guava = "31.1-android"
|
||||||
netty = '4.1.87.Final'
|
netty = '4.1.87.Final'
|
||||||
nettytcnative = '2.0.56.Final'
|
nettytcnative = '2.0.56.Final'
|
||||||
opencensus = "0.31.0"
|
opencensus = "0.31.0"
|
||||||
protobuf = "3.21.7"
|
protobuf = "3.22.3"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
android-annotations = "com.google.android:annotations:4.1.1.4"
|
android-annotations = "com.google.android:annotations:4.1.1.4"
|
||||||
|
@ -36,6 +36,7 @@ gson = "com.google.code.gson:gson:2.9.0"
|
||||||
guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
guava = { module = "com.google.guava:guava", version.ref = "guava" }
|
||||||
guava-betaChecker = "com.google.guava:guava-beta-checker:1.0"
|
guava-betaChecker = "com.google.guava:guava-beta-checker:1.0"
|
||||||
guava-testlib = { module = "com.google.guava:guava-testlib", version.ref = "guava" }
|
guava-testlib = { module = "com.google.guava:guava-testlib", version.ref = "guava" }
|
||||||
|
guava-jre = "com.google.guava:guava:31.1-jre"
|
||||||
hdrhistogram = "org.hdrhistogram:HdrHistogram:2.1.12"
|
hdrhistogram = "org.hdrhistogram:HdrHistogram:2.1.12"
|
||||||
javax-annotation = "org.apache.tomcat:annotations-api:6.0.53"
|
javax-annotation = "org.apache.tomcat:annotations-api:6.0.53"
|
||||||
jetty-alpn-agent = "org.mortbay.jetty.alpn:jetty-alpn-agent:2.0.10"
|
jetty-alpn-agent = "org.mortbay.jetty.alpn:jetty-alpn-agent:2.0.10"
|
||||||
|
|
|
@ -150,18 +150,18 @@ def com_google_protobuf():
|
||||||
# This statement defines the @com_google_protobuf repo.
|
# This statement defines the @com_google_protobuf repo.
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_google_protobuf",
|
name = "com_google_protobuf",
|
||||||
sha256 = "c72840a5081484c4ac20789ea5bb5d5de6bc7c477ad76e7109fda2bc4e630fe6",
|
sha256 = "5d0f05587aa3ad56079b4c4481dcb462267e5f1075d905c321f8ed6339e74ab0",
|
||||||
strip_prefix = "protobuf-3.21.7",
|
strip_prefix = "protobuf-22.3",
|
||||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.7.zip"],
|
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protobuf-22.3.zip"],
|
||||||
)
|
)
|
||||||
|
|
||||||
def com_google_protobuf_javalite():
|
def com_google_protobuf_javalite():
|
||||||
# java_lite_proto_library rules implicitly depend on @com_google_protobuf_javalite
|
# java_lite_proto_library rules implicitly depend on @com_google_protobuf_javalite
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_google_protobuf_javalite",
|
name = "com_google_protobuf_javalite",
|
||||||
sha256 = "c72840a5081484c4ac20789ea5bb5d5de6bc7c477ad76e7109fda2bc4e630fe6",
|
sha256 = "5d0f05587aa3ad56079b4c4481dcb462267e5f1075d905c321f8ed6339e74ab0",
|
||||||
strip_prefix = "protobuf-3.21.7",
|
strip_prefix = "protobuf-22.3",
|
||||||
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.7.zip"],
|
urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protobuf-22.3.zip"],
|
||||||
)
|
)
|
||||||
|
|
||||||
def io_grpc_grpc_proto():
|
def io_grpc_grpc_proto():
|
||||||
|
|
|
@ -23,7 +23,7 @@ dependencies {
|
||||||
project(':grpc-stub'),
|
project(':grpc-stub'),
|
||||||
project(':grpc-core')
|
project(':grpc-core')
|
||||||
implementation libraries.protobuf.java.util,
|
implementation libraries.protobuf.java.util,
|
||||||
libraries.guava
|
libraries.guava.jre // JRE required by protobuf-java-util
|
||||||
|
|
||||||
runtimeOnly libraries.errorprone.annotations
|
runtimeOnly libraries.errorprone.annotations
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue