Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep: bump protobuf, google-auth, google-http-client and google-cloud-… #9021

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions COMPILING.md
Expand Up @@ -44,11 +44,11 @@ This section is only necessary if you are making changes to the code
generation. Most users only need to use `skipCodegen=true` as discussed above.

### Build Protobuf
The codegen plugin is C++ code and requires protobuf 3.19.2 or later.
The codegen plugin is C++ code and requires protobuf 3.19.4 or later.

For Linux, Mac and MinGW:
```
$ PROTOBUF_VERSION=3.19.2
$ PROTOBUF_VERSION=3.19.4
$ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
$ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
$ cd protobuf-$PROTOBUF_VERSION
Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -112,7 +112,7 @@ For protobuf-based codegen integrated with the Maven build system, you can use
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.19.2:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:3.19.4:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.45.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
Expand Down Expand Up @@ -140,7 +140,7 @@ plugins {

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.19.2"
artifact = "com.google.protobuf:protoc:3.19.4"
}
plugins {
grpc {
Expand Down Expand Up @@ -173,7 +173,7 @@ plugins {

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.19.2"
artifact = "com.google.protobuf:protoc:3.19.4"
}
plugins {
grpc {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -57,8 +57,8 @@ subprojects {

nettyVersion = '4.1.72.Final'
guavaVersion = '31.0.1-android'
googleauthVersion = '1.4.0'
protobufVersion = '3.19.2'
googleauthVersion = '1.5.3'
protobufVersion = '3.19.4'
protocVersion = protobufVersion
opencensusVersion = '0.28.0'
autovalueVersion = '1.9'
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/make_dependencies.bat
@@ -1,4 +1,4 @@
set PROTOBUF_VER=3.19.2
set PROTOBUF_VER=3.19.4
set CMAKE_NAME=cmake-3.3.2-win32-x86

if not exist "protobuf-%PROTOBUF_VER%\cmake\build\Release\" (
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/make_dependencies.sh
Expand Up @@ -3,7 +3,7 @@
# Build protoc
set -evux -o pipefail

PROTOBUF_VERSION=3.19.2
PROTOBUF_VERSION=3.19.4

# ARCH is x86_64 bit unless otherwise specified.
ARCH="${ARCH:-x86_64}"
Expand Down
2 changes: 1 addition & 1 deletion examples/android/clientcache/app/build.gradle
Expand Up @@ -32,7 +32,7 @@ android {
}

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.19.2' }
protoc { artifact = 'com.google.protobuf:protoc:3.19.4' }
plugins {
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
}
Expand Down
2 changes: 1 addition & 1 deletion examples/android/helloworld/app/build.gradle
Expand Up @@ -30,7 +30,7 @@ android {
}

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.19.2' }
protoc { artifact = 'com.google.protobuf:protoc:3.19.4' }
plugins {
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
}
Expand Down
2 changes: 1 addition & 1 deletion examples/android/routeguide/app/build.gradle
Expand Up @@ -30,7 +30,7 @@ android {
}

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.19.2' }
protoc { artifact = 'com.google.protobuf:protoc:3.19.4' }
plugins {
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
}
Expand Down
2 changes: 1 addition & 1 deletion examples/android/strictmode/app/build.gradle
Expand Up @@ -31,7 +31,7 @@ android {
}

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.19.2' }
protoc { artifact = 'com.google.protobuf:protoc:3.19.4' }
plugins {
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
}
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle
Expand Up @@ -23,7 +23,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protobufVersion = '3.19.2'
def protobufVersion = '3.19.4'
def protocVersion = protobufVersion

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion examples/example-alts/build.gradle
Expand Up @@ -24,7 +24,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protocVersion = '3.19.2'
def protocVersion = '3.19.4'

dependencies {
// grpc-alts transitively depends on grpc-netty-shaded, grpc-protobuf, and grpc-stub
Expand Down
2 changes: 1 addition & 1 deletion examples/example-gauth/build.gradle
Expand Up @@ -24,7 +24,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protobufVersion = '3.19.2'
def protobufVersion = '3.19.4'
def protocVersion = protobufVersion


Expand Down
2 changes: 1 addition & 1 deletion examples/example-gauth/pom.xml
Expand Up @@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.46.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
<protobuf.version>3.19.2</protobuf.version>
<protobuf.version>3.19.4</protobuf.version>
<!-- required for jdk9 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion examples/example-hostname/build.gradle
Expand Up @@ -22,7 +22,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protobufVersion = '3.19.2'
def protobufVersion = '3.19.4'

dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
Expand Down
2 changes: 1 addition & 1 deletion examples/example-hostname/pom.xml
Expand Up @@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.46.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
<protoc.version>3.19.2</protoc.version>
<protoc.version>3.19.4</protoc.version>
<!-- required for jdk9 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion examples/example-jwt-auth/build.gradle
Expand Up @@ -23,7 +23,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protobufVersion = '3.19.2'
def protobufVersion = '3.19.4'
def protocVersion = protobufVersion

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions examples/example-jwt-auth/pom.xml
Expand Up @@ -14,8 +14,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.46.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
<protobuf.version>3.19.2</protobuf.version>
<protoc.version>3.19.2</protoc.version>
<protobuf.version>3.19.4</protobuf.version>
<protoc.version>3.19.4</protoc.version>
<!-- required for jdk9 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion examples/example-tls/build.gradle
Expand Up @@ -24,7 +24,7 @@ targetCompatibility = 1.8
// Feel free to delete the comment at the next line. It is just for safely
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def protocVersion = '3.19.2'
def protocVersion = '3.19.4'

dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
Expand Down
2 changes: 1 addition & 1 deletion examples/example-tls/pom.xml
Expand Up @@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.46.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
<protoc.version>3.19.2</protoc.version>
<protoc.version>3.19.4</protoc.version>
<netty.tcnative.version>2.0.34.Final</netty.tcnative.version>
<!-- required for jdk9 -->
<maven.compiler.source>1.7</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion examples/example-xds/build.gradle
Expand Up @@ -24,7 +24,7 @@ targetCompatibility = 1.8
// updating the version in our release process.
def grpcVersion = '1.46.0-SNAPSHOT' // CURRENT_GRPC_VERSION
def nettyTcNativeVersion = '2.0.31.Final'
def protocVersion = '3.19.2'
def protocVersion = '3.19.4'

dependencies {
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
Expand Down
4 changes: 2 additions & 2 deletions examples/pom.xml
Expand Up @@ -13,8 +13,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.46.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
<protobuf.version>3.19.2</protobuf.version>
<protoc.version>3.19.2</protoc.version>
<protobuf.version>3.19.4</protobuf.version>
<protoc.version>3.19.4</protoc.version>
<!-- required for jdk9 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
Expand Down
4 changes: 4 additions & 0 deletions interop-testing/build.gradle
Expand Up @@ -55,6 +55,10 @@ configureProtoCompilation()
import net.ltgt.gradle.errorprone.CheckSeverity

compileJava {
// opencensus ContextUtils in AbstractInteropTest has been deprecated
it.options.compilerArgs += [
"-Xlint:-deprecation"
]
// This isn't a library; it can use beta APIs
options.errorprone.check("BetaApi", CheckSeverity.OFF)
}
Expand Down
Expand Up @@ -1548,6 +1548,7 @@ public void customMetadata() throws Exception {
}

@Test(timeout = 10000)
@SuppressWarnings("deprecation")
public void censusContextsPropagated() {
Assume.assumeTrue("Skip the test because server is not in the same process.", server != null);
Assume.assumeTrue(customCensusModulePresent());
Expand Down
12 changes: 6 additions & 6 deletions observability/build.gradle
Expand Up @@ -8,22 +8,22 @@ plugins {

description = "gRPC: Observability"
dependencies {
def cloudLoggingVersion = '3.6.1'
def cloudLoggingVersion = '3.7.1'

api project(':grpc-api')

implementation project(':grpc-protobuf'),
project(':grpc-stub'),
project(':grpc-alts'),
libraries.google_auth_oauth2_http,
libraries.google_auth_credentials,
('com.google.guava:guava:31.0.1-jre'),
('com.google.errorprone:error_prone_annotations:2.11.0'),
('com.google.auth:google-auth-library-credentials:1.4.0'),
('org.checkerframework:checker-qual:3.20.0'),
('org.checkerframework:checker-qual:3.21.3'),
('com.google.auto.value:auto-value-annotations:1.9'),
('com.google.http-client:google-http-client:1.41.0'),
('com.google.http-client:google-http-client-gson:1.41.0'),
('com.google.api.grpc:proto-google-common-protos:2.7.1'),
('com.google.http-client:google-http-client:1.41.4'),
('com.google.http-client:google-http-client-gson:1.41.4'),
('com.google.api.grpc:proto-google-common-protos:2.7.4'),
("com.google.cloud:google-cloud-logging:${cloudLoggingVersion}")

testImplementation project(':grpc-testing'),
Expand Down
12 changes: 6 additions & 6 deletions repositories.bzl
Expand Up @@ -98,18 +98,18 @@ def com_google_protobuf():
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
sha256 = "9ceef0daf7e8be16cd99ac759271eb08021b53b1c7b6edd399953a76390234cd",
strip_prefix = "protobuf-3.19.2",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.2.zip"],
sha256 = "25680843adf0c3302648d35f744e38cc3b6b05a6c77a927de5aea3e1c2e36106",
strip_prefix = "protobuf-3.19.4",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.4.zip"],
)

def com_google_protobuf_javalite():
# java_lite_proto_library rules implicitly depend on @com_google_protobuf_javalite
http_archive(
name = "com_google_protobuf_javalite",
sha256 = "9ceef0daf7e8be16cd99ac759271eb08021b53b1c7b6edd399953a76390234cd",
strip_prefix = "protobuf-3.19.2",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.2.zip"],
sha256 = "25680843adf0c3302648d35f744e38cc3b6b05a6c77a927de5aea3e1c2e36106",
strip_prefix = "protobuf-3.19.4",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.4.zip"],
)

def io_grpc_grpc_proto():
Expand Down