Skip to content

Commit

Permalink
feat: migrate away from deprecated graal-sdk dependency to use native…
Browse files Browse the repository at this point in the history
…image (#2706)

Merge after googleapis/java-shared-config#815 is
released and updated in sdk-platform-java.


According to the [graal/sdk
CHANGELOG](https://github.com/oracle/graal/blob/fefc2a03a1e46ce60ce4b03f223d83640fbef0f4/sdk/CHANGELOG.md#version-2310),
the GraalVM SDK was split into smaller modules and the use of graal-sdk
is deprecated. The new maven configuration to customize native image
generation is:
```
<dependency>
  <groupId>org.graalvm.sdk</groupId>
  <artifactId>nativeimage</artifactId>
  <version>${graalvm.version}</version>
</dependency>
```
  • Loading branch information
mpeddada1 authored Jan 30, 2025
1 parent 330a261 commit 757801a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gax-java/dependencies.properties
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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.45.3
maven.org_codehaus_mojo_animal_sniffer_annotations=org.codehaus.mojo:animal-sniffer-annotations:1.24
maven.javax_annotation_javax_annotation_api=javax.annotation:javax.annotation-api:1.3.2
maven.org_graalvm_sdk=org.graalvm.sdk:graal-sdk:22.3.5
maven.org_graalvm_sdk=org.graalvm.sdk:nativeimage:24.0.1

# Testing maven artifacts
maven.junit_junit=junit:junit:4.13.2
Expand Down
2 changes: 1 addition & 1 deletion gax-java/gax-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<artifactId>nativeimage</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion gax-java/gax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<artifactId>nativeimage</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 757801a

Please sign in to comment.