From 5870c9c9be83083eb246bd35430308244c2e99ec Mon Sep 17 00:00:00 2001 From: Mridula Peddada Date: Fri, 7 Oct 2022 13:06:06 -0400 Subject: [PATCH 1/2] fix(java): address reachability issues in native image compilation with version 22.2.0 --- dependencies.properties | 2 +- .../com.google.api/gax-grpc/native-image.properties | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dependencies.properties b/dependencies.properties index cd4d37109..1678ff848 100644 --- a/dependencies.properties +++ b/dependencies.properties @@ -71,7 +71,7 @@ maven.com_google_http_client_google_http_client=com.google.http-client:google-ht maven.com_google_http_client_google_http_client_gson=com.google.http-client:google-http-client-gson:1.42.0 maven.org_codehaus_mojo_animal_sniffer_annotations=org.codehaus.mojo:animal-sniffer-annotations:1.18 maven.javax_annotation_javax_annotation_api=javax.annotation:javax.annotation-api:1.3.2 -maven.org_graalvm_sdk=org.graalvm.sdk:graal-sdk:22.1.0.1 +maven.org_graalvm_sdk=org.graalvm.sdk:graal-sdk:22.2.0 # Testing maven artifacts maven.junit_junit=junit:junit:4.13.2 diff --git a/gax-grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties b/gax-grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties index 8620cb95a..f8c0ada53 100644 --- a/gax-grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties +++ b/gax-grpc/src/main/resources/META-INF/native-image/com.google.api/gax-grpc/native-image.properties @@ -10,4 +10,5 @@ Args = --initialize-at-run-time=io.grpc.netty.shaded.io.netty.handler.ssl.OpenSs io.grpc.netty.shaded.io.netty.handler.ssl,\ io.grpc.internal.RetriableStream \ --features=com.google.api.gax.grpc.nativeimage.ProtobufMessageFeature,\ - com.google.api.gax.grpc.nativeimage.GrpcNettyFeature \ No newline at end of file + com.google.api.gax.grpc.nativeimage.GrpcNettyFeature \ + -H:-RunReachabilityHandlersConcurrently \ No newline at end of file From 96023ec44626f22fa6e563ae2f5e15d9265afbcc Mon Sep 17 00:00:00 2001 From: Mridula Peddada Date: Fri, 7 Oct 2022 13:25:59 -0400 Subject: [PATCH 2/2] test graal 22.2.0 --- .github/workflows/downstream-native-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/downstream-native-image.yaml b/.github/workflows/downstream-native-image.yaml index 49ae868fe..7d8eb4cab 100644 --- a/.github/workflows/downstream-native-image.yaml +++ b/.github/workflows/downstream-native-image.yaml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - graalvm: [22.2.0, 22.1.0] + graalvm: [22.2.0] java: [11, 17] repo: # GAPIC library that doesn't use a real GCP project in integration tests