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

Upgrade dependencies #11365

Merged
merged 4 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ module(
IO_GRPC_GRPC_JAVA_ARTIFACTS = [
"com.google.android:annotations:4.1.1.4",
"com.google.api.grpc:proto-google-common-protos:2.29.0",
"com.google.auth:google-auth-library-credentials:1.22.0",
"com.google.auth:google-auth-library-oauth2-http:1.22.0",
"com.google.auto.value:auto-value-annotations:1.10.4",
"com.google.auto.value:auto-value:1.10.4",
"com.google.auth:google-auth-library-credentials:1.23.0",
"com.google.auth:google-auth-library-oauth2-http:1.23.0",
"com.google.auto.value:auto-value-annotations:1.11.0",
"com.google.auto.value:auto-value:1.11.0",
"com.google.code.findbugs:jsr305:3.0.2",
"com.google.code.gson:gson:2.10.1",
"com.google.errorprone:error_prone_annotations:2.23.0",
"com.google.code.gson:gson:2.11.0",
"com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.guava:failureaccess:1.0.1",
"com.google.guava:guava:32.1.3-android",
"com.google.guava:guava:33.2.1-android",
"com.google.re2j:re2j:1.7",
"com.google.truth:truth:1.1.5",
"com.google.truth:truth:1.4.3",
"com.squareup.okhttp:okhttp:2.7.5",
"com.squareup.okio:okio:2.10.0", # 3.0+ needs swapping to -jvm; need work to avoid flag-day
"io.netty:netty-buffer:4.1.100.Final",
Expand All @@ -38,10 +38,10 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
"io.netty:netty-transport:4.1.100.Final",
"io.opencensus:opencensus-api:0.31.0",
"io.opencensus:opencensus-contrib-grpc-metrics:0.31.0",
"io.perfmark:perfmark-api:0.26.0",
"io.perfmark:perfmark-api:0.27.0",
"junit:junit:4.13.2",
"org.apache.tomcat:annotations-api:6.0.53",
"org.codehaus.mojo:animal-sniffer-annotations:1.23",
"org.codehaus.mojo:animal-sniffer-annotations:1.24",
]
# GRPC_DEPS_END

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ public void invalidPolicy() throws Exception {
AuthorizationPolicyTranslator.translate(policy);
fail("exception expected");
} catch (IOException ioe) {
assertThat(ioe).hasMessageThat().isEqualTo(
"Use JsonReader.setLenient(true) to accept malformed JSON"
+ " at line 1 column 18 path $.name");
assertThat(ioe).hasMessageThat().contains("malformed JSON");
assertThat(ioe).hasMessageThat().contains("at line 1 column 18 path $.name");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ public void invalidPolicyFailsStaticAuthzInterceptorCreation() throws Exception
AuthorizationServerInterceptor.create(policy);
fail("exception expected");
} catch (IOException ioe) {
assertThat(ioe).hasMessageThat().isEqualTo(
"Use JsonReader.setLenient(true) to accept malformed JSON"
+ " at line 1 column 18 path $.name");
assertThat(ioe).hasMessageThat().contains("malformed JSON");
assertThat(ioe).hasMessageThat().contains("at line 1 column 18 path $.name");
}
}

Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,14 @@ def isAcceptableVersion(ModuleComponentIdentifier candidate) {
return true
if (group == 'io.netty' && version.contains('Final'))
return true
if (group == 'io.undertow' && version.contains('Final'))
return true
if (module == 'android-api-level-19')
return true
if (module == 'opentelemetry-exporter-prometheus')
return true
if (module == 'opentelemetry-gcp-resources')
return true
return version ==~ /^[0-9]+(\.[0-9]+)+$/
}

Expand Down
12 changes: 10 additions & 2 deletions buildSrc/src/main/java/io/grpc/gradle/CheckForUpdatesTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
import org.gradle.api.artifacts.ModuleVersionIdentifier;
import org.gradle.api.artifacts.VersionCatalog;
import org.gradle.api.artifacts.VersionCatalogsExtension;
import org.gradle.api.artifacts.result.DependencyResult;
import org.gradle.api.artifacts.result.ResolvedComponentResult;
import org.gradle.api.artifacts.result.ResolvedDependencyResult;
import org.gradle.api.artifacts.result.UnresolvedDependencyResult;
import org.gradle.api.provider.Provider;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.Nested;
Expand Down Expand Up @@ -88,8 +90,14 @@ protected Set<Library> getLibraries() {
public void checkForUpdates() {
for (Library lib : libraries) {
String name = lib.getName();
ModuleVersionIdentifier oldId = ((ResolvedDependencyResult) lib.getOldResult().get()
.getDependencies().iterator().next()).getSelected().getModuleVersion();
DependencyResult oldResult = lib.getOldResult().get().getDependencies().iterator().next();
if (oldResult instanceof UnresolvedDependencyResult) {
System.out.println(String.format(
"- Current version of libs.%s not resolved", name));
continue;
}
ModuleVersionIdentifier oldId =
((ResolvedDependencyResult) oldResult).getSelected().getModuleVersion();
ModuleVersionIdentifier newId = ((ResolvedDependencyResult) lib.getNewResult().get()
.getDependencies().iterator().next()).getSelected().getModuleVersion();
if (oldId != newId) {
Expand Down
76 changes: 39 additions & 37 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,60 @@
[versions]
googleauth = "1.22.0"
netty = '4.1.100.Final'
# Keep the following references of tcnative version in sync whenever it's updated:
# SECURITY.md
nettytcnative = '2.0.61.Final'
opencensus = "0.31.1"
protobuf = "3.25.1"
# Not upgrading to 4.x as it is not yet ABI compatible.
# https://github.com/protocolbuffers/protobuf/issues/17247
protobuf = "3.25.3"

[libraries]
android-annotations = "com.google.android:annotations:4.1.1.4"
androidx-annotation = "androidx.annotation:annotation:1.7.0"
androidx-core = "androidx.core:core:1.12.0"
androidx-lifecycle-common = "androidx.lifecycle:lifecycle-common:2.6.2"
androidx-lifecycle-service = "androidx.lifecycle:lifecycle-service:2.6.2"
androidx-test-core = "androidx.test:core:1.5.0"
androidx-test-ext-junit = "androidx.test.ext:junit:1.1.5"
androidx-test-rules = "androidx.test:rules:1.5.0"
animalsniffer = "org.codehaus.mojo:animal-sniffer:1.23"
animalsniffer-annotations = "org.codehaus.mojo:animal-sniffer-annotations:1.23"
assertj-core = "org.assertj:assertj-core:3.24.2"
auto-value = "com.google.auto.value:auto-value:1.10.4"
auto-value-annotations = "com.google.auto.value:auto-value-annotations:1.10.4"
androidx-annotation = "androidx.annotation:annotation:1.8.0"
androidx-core = "androidx.core:core:1.13.1"
androidx-lifecycle-common = "androidx.lifecycle:lifecycle-common:2.8.3"
androidx-lifecycle-service = "androidx.lifecycle:lifecycle-service:2.8.3"
androidx-test-core = "androidx.test:core:1.6.1"
androidx-test-ext-junit = "androidx.test.ext:junit:1.2.1"
androidx-test-rules = "androidx.test:rules:1.6.1"
animalsniffer = "org.codehaus.mojo:animal-sniffer:1.24"
animalsniffer-annotations = "org.codehaus.mojo:animal-sniffer-annotations:1.24"
assertj-core = "org.assertj:assertj-core:3.26.0"
auto-value = "com.google.auto.value:auto-value:1.11.0"
auto-value-annotations = "com.google.auto.value:auto-value-annotations:1.11.0"
checkstyle = "com.puppycrawl.tools:checkstyle:10.17.0"
commons-math3 = "org.apache.commons:commons-math3:3.6.1"
conscrypt = "org.conscrypt:conscrypt-openjdk-uber:2.5.2"
cronet-api = "org.chromium.net:cronet-api:119.6045.31"
cronet-embedded = "org.chromium.net:cronet-embedded:119.6045.31"
errorprone-annotations = "com.google.errorprone:error_prone_annotations:2.23.0"
errorprone-annotations = "com.google.errorprone:error_prone_annotations:2.28.0"
errorprone-core = "com.google.errorprone:error_prone_core:2.23.0"
google-api-protos = "com.google.api.grpc:proto-google-common-protos:2.29.0"
google-auth-credentials = { module = "com.google.auth:google-auth-library-credentials", version.ref = "googleauth" }
google-auth-oauth2Http = { module = "com.google.auth:google-auth-library-oauth2-http", version.ref = "googleauth" }
google-api-protos = "com.google.api.grpc:proto-google-common-protos:2.41.0"
google-auth-credentials = "com.google.auth:google-auth-library-credentials:1.23.0"
google-auth-oauth2Http = "com.google.auth:google-auth-library-oauth2-http:1.23.0"
# Release notes: https://cloud.google.com/logging/docs/release-notes
google-cloud-logging = "com.google.cloud:google-cloud-logging:3.15.14"
gson = "com.google.code.gson:gson:2.10.1"
guava = "com.google.guava:guava:32.1.3-android"
google-cloud-logging = "com.google.cloud:google-cloud-logging:3.19.0"
gson = "com.google.code.gson:gson:2.11.0"
guava = "com.google.guava:guava:33.2.1-android"
guava-betaChecker = "com.google.guava:guava-beta-checker:1.0"
guava-testlib = "com.google.guava:guava-testlib:32.1.3-android"
guava-testlib = "com.google.guava:guava-testlib:33.2.1-android"
# JRE version is needed for projects where its a transitive dependency, f.e. gcp-observability.
# May be different from the -android version.
guava-jre = "com.google.guava:guava:32.1.3-jre"
hdrhistogram = "org.hdrhistogram:HdrHistogram:2.1.12"
j2objc-annotations = " com.google.j2objc:j2objc-annotations:2.8"
guava-jre = "com.google.guava:guava:33.2.1-jre"
hdrhistogram = "org.hdrhistogram:HdrHistogram:2.2.2"
j2objc-annotations = " com.google.j2objc:j2objc-annotations:3.0.0"
jakarta-servlet-api = "jakarta.servlet:jakarta.servlet-api:5.0.0"
javax-annotation = "org.apache.tomcat:annotations-api:6.0.53"
javax-servlet-api = "javax.servlet:javax.servlet-api:4.0.1"
jetty-client = "org.eclipse.jetty:jetty-client:10.0.20"
jetty-http2-server = "org.eclipse.jetty.http2:http2-server:11.0.20"
jetty-http2-server = "org.eclipse.jetty.http2:http2-server:11.0.22"
jetty-http2-server10 = "org.eclipse.jetty.http2:http2-server:10.0.20"
jetty-servlet = "org.eclipse.jetty:jetty-servlet:11.0.20"
jetty-servlet = "org.eclipse.jetty:jetty-servlet:11.0.22"
jetty-servlet10 = "org.eclipse.jetty:jetty-servlet:10.0.20"
jsr305 = "com.google.code.findbugs:jsr305:3.0.2"
junit = "junit:junit:4.13.2"
lincheck = "org.jetbrains.kotlinx:lincheck:2.14.1"
# 2.17+ require Java 11+ (not mentioned in release notes)
lincheck = "org.jetbrains.kotlinx:lincheck:2.16"
# Update notes / 2023-07-19 sergiitk:
# Couldn't update to 5.4.0, updated to the last in 4.x line. Version 5.x breaks some tests.
# Error log: https://github.com/grpc/grpc-java/pull/10359#issuecomment-1632834435
Expand All @@ -75,25 +77,25 @@ opencensus-contrib-grpc-metrics = { module = "io.opencensus:opencensus-contrib-g
opencensus-exporter-stats-stackdriver = { module = "io.opencensus:opencensus-exporter-stats-stackdriver", version.ref = "opencensus" }
opencensus-exporter-trace-stackdriver = { module = "io.opencensus:opencensus-exporter-trace-stackdriver", version.ref = "opencensus" }
opencensus-impl = { module = "io.opencensus:opencensus-impl", version.ref = "opencensus" }
opentelemetry-api = "io.opentelemetry:opentelemetry-api:1.39.0"
opentelemetry-exporter-prometheus = "io.opentelemetry:opentelemetry-exporter-prometheus:1.39.0-alpha"
opentelemetry-api = "io.opentelemetry:opentelemetry-api:1.40.0"
opentelemetry-exporter-prometheus = "io.opentelemetry:opentelemetry-exporter-prometheus:1.40.0-alpha"
opentelemetry-gcp-resources = "io.opentelemetry.contrib:opentelemetry-gcp-resources:1.36.0-alpha"
opentelemetry-sdk-extension-autoconfigure = "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.39.0"
opentelemetry-sdk-testing = "io.opentelemetry:opentelemetry-sdk-testing:1.39.0"
perfmark-api = "io.perfmark:perfmark-api:0.26.0"
opentelemetry-sdk-extension-autoconfigure = "io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.40.0"
opentelemetry-sdk-testing = "io.opentelemetry:opentelemetry-sdk-testing:1.40.0"
perfmark-api = "io.perfmark:perfmark-api:0.27.0"
protobuf-java = { module = "com.google.protobuf:protobuf-java", version.ref = "protobuf" }
protobuf-java-util = { module = "com.google.protobuf:protobuf-java-util", version.ref = "protobuf" }
protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "protobuf" }
protobuf-protoc = { module = "com.google.protobuf:protoc", version.ref = "protobuf" }
re2j = "com.google.re2j:re2j:1.7"
robolectric = "org.robolectric:robolectric:4.11.1"
robolectric = "org.robolectric:robolectric:4.13"
signature-android = "net.sf.androidscents.signature:android-api-level-19:4.4.2_r4"
signature-java = "org.codehaus.mojo.signature:java18:1.0"
tomcat-embed-core = "org.apache.tomcat.embed:tomcat-embed-core:10.1.23"
tomcat-embed-core = "org.apache.tomcat.embed:tomcat-embed-core:10.1.25"
tomcat-embed-core9 = "org.apache.tomcat.embed:tomcat-embed-core:9.0.89"
truth = "com.google.truth:truth:1.1.5"
truth = "com.google.truth:truth:1.4.3"
undertow-servlet = "io.undertow:undertow-servlet:2.2.32.Final"
undertow-servlet-jakartaee9 = "io.undertow:undertow-servlet:2.3.13.Final"
undertow-servlet-jakartaee9 = "io.undertow:undertow-servlet:2.3.14.Final"

# Do not update: Pinned to the last version supporting Java 8.
# See https://checkstyle.sourceforge.io/releasenotes.html#Release_10.1
Expand Down
20 changes: 10 additions & 10 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
IO_GRPC_GRPC_JAVA_ARTIFACTS = [
"com.google.android:annotations:4.1.1.4",
"com.google.api.grpc:proto-google-common-protos:2.29.0",
"com.google.auth:google-auth-library-credentials:1.22.0",
"com.google.auth:google-auth-library-oauth2-http:1.22.0",
"com.google.auto.value:auto-value-annotations:1.10.4",
"com.google.auto.value:auto-value:1.10.4",
"com.google.auth:google-auth-library-credentials:1.23.0",
"com.google.auth:google-auth-library-oauth2-http:1.23.0",
"com.google.auto.value:auto-value-annotations:1.11.0",
"com.google.auto.value:auto-value:1.11.0",
"com.google.code.findbugs:jsr305:3.0.2",
"com.google.code.gson:gson:2.10.1",
"com.google.errorprone:error_prone_annotations:2.23.0",
"com.google.code.gson:gson:2.11.0",
"com.google.errorprone:error_prone_annotations:2.28.0",
"com.google.guava:failureaccess:1.0.1",
"com.google.guava:guava:32.1.3-android",
"com.google.guava:guava:33.2.1-android",
"com.google.re2j:re2j:1.7",
"com.google.truth:truth:1.1.5",
"com.google.truth:truth:1.4.3",
"com.squareup.okhttp:okhttp:2.7.5",
"com.squareup.okio:okio:2.10.0", # 3.0+ needs swapping to -jvm; need work to avoid flag-day
"io.netty:netty-buffer:4.1.100.Final",
Expand All @@ -42,10 +42,10 @@ IO_GRPC_GRPC_JAVA_ARTIFACTS = [
"io.netty:netty-transport:4.1.100.Final",
"io.opencensus:opencensus-api:0.31.0",
"io.opencensus:opencensus-contrib-grpc-metrics:0.31.0",
"io.perfmark:perfmark-api:0.26.0",
"io.perfmark:perfmark-api:0.27.0",
"junit:junit:4.13.2",
"org.apache.tomcat:annotations-api:6.0.53",
"org.codehaus.mojo:animal-sniffer-annotations:1.23",
"org.codehaus.mojo:animal-sniffer-annotations:1.24",
]
# GRPC_DEPS_END

Expand Down
Loading