Closed jamesnetherton closed 2 years ago
Thank you so much for filing this issue @jamesnetherton! We're aware of this issue and are currently looking into it. Could you provide us with a bit more information on what client libraries you're experiencing this with? What version of the libraries-bom/ the client libraries are you currently using?
Using libraries-bom
16.3.0 (just realized that is somewhat old now..). Here's the dependency tree for the affected modules in my project:
google-cloud-storage
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ camel-quarkus-google-storage ---
[INFO] org.apache.camel.quarkus:camel-quarkus-google-storage:jar:2.10.0-SNAPSHOT
[INFO] +- com.google.cloud:native-image-support:jar:0.14.0:compile
[INFO] \- org.apache.camel:camel-google-storage:jar:3.17.0-SNAPSHOT:compile
[INFO] \- com.google.cloud:google-cloud-storage:jar:1.113.8:compile
[INFO] +- com.google.cloud:google-cloud-core:jar:1.94.0:compile
[INFO] \- com.google.cloud:google-cloud-core-http:jar:1.94.0:compile
google-cloud-bigquery
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ camel-quarkus-google-bigquery ---
[INFO] org.apache.camel.quarkus:camel-quarkus-google-bigquery:jar:2.10.0-SNAPSHOT
[INFO] +- com.google.cloud:native-image-support:jar:0.14.0:compile
[INFO] \- org.apache.camel:camel-google-bigquery:jar:3.17.0-SNAPSHOT:compile
[INFO] \- com.google.cloud:google-cloud-bigquery:jar:1.126.3:compile
[INFO] +- com.google.cloud:google-cloud-core:jar:1.94.0:compile
[INFO] \- com.google.cloud:google-cloud-core-http:jar:1.94.0:compile
google-cloud-pubsub
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ camel-quarkus-google-pubsub ---
[INFO] org.apache.camel.quarkus:camel-quarkus-google-pubsub:jar:2.10.0-SNAPSHOT
[INFO] +- com.google.cloud:native-image-support:jar:0.14.0:compile
[INFO] \- org.apache.camel:camel-google-pubsub:jar:3.17.0-SNAPSHOT:compile
[INFO] \- com.google.cloud:google-cloud-pubsub:jar:1.110.3:compile
Thank you!
I also have the issue, I notice that the GraalVM library is in scope provided. Google native image support is based on org.graalvm.nativeimage:svm. ~Where the new version of GraalVM relocate the artifact in org.graalvm.sdk:graal-sdk:jar:22.1.0.~
~So it appears the switch should be done to the new artifact also.~
@jamesnetherton the issue should be fixed at Quarkus GCP extension side, you can track this issue: https://github.com/quarkusio/quarkus/issues/25501
@loicmathieu Would you share your finding about relocation?
Where the new version of GraalVM relocate the artifact in org.graalvm.sdk:graal-sdk:jar:22.1.0
Does that mean certain classes are in a different Java package in org.graalvm.sdk:graal-sdk:jar:22.1.0?
I have no idea, they change the Maven artifact but I don't know if the packages changed.
@suztomo forget what I just said, there is two different artefact and org.graalvm.nativeimage:svm is not yet release for 22.1.
@loicmathieu Thank you for clarification. That matches my understanding.
Hey all, 0.14.1 has been released with this fix.
Thanks, I'll confirm tomorrow if it fixes the issue.
Building a native image with the Google Cloud libraries results in a build failure when using GraalVM 22.1.0: