Skip to content

Commit 911fbf2

Browse files
chore: centralize graalvm config (#1559)
1 parent 1c371e7 commit 911fbf2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

google-cloud-nio/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
<groupId>com.google.code.findbugs</groupId>
6262
<artifactId>jsr305</artifactId>
6363
</dependency>
64+
<dependency>
65+
<groupId>com.google.api</groupId>
66+
<artifactId>gax</artifactId>
67+
<classifier>testlib</classifier>
68+
<scope>test</scope>
69+
</dependency>
6470

6571
<dependency>
6672
<groupId>junit</groupId>
@@ -183,6 +189,15 @@
183189
</execution>
184190
</executions>
185191
</plugin>
192+
<plugin>
193+
<artifactId>maven-dependency-plugin</artifactId>
194+
<configuration>
195+
<ignoredUnusedDeclaredDependencies>
196+
<!-- This dependency is used for its native image configuration in the test scope -->
197+
<ignoredUnusedDeclaredDependency>com.google.api:gax:jar</ignoredUnusedDeclaredDependency>
198+
</ignoredUnusedDeclaredDependencies>
199+
</configuration>
200+
</plugin>
186201
</plugins>
187202
</build>
188203
</project>

google-cloud-nio/src/main/resources/META-INF/native-image/com/google/cloud/google-cloud-nio/native-image.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@
77
Args = --initialize-at-build-time=com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider,\
88
com.google.cloud.storage.contrib.nio.CloudStorageConfiguration,\
99
com.google.cloud.storage.contrib.nio.AutoValue_CloudStorageConfiguration,\
10-
com.google.common.collect.RegularImmutableList,\
11-
org.junit.runner.RunWith,java.lang.annotation.Annotation,\
12-
org.junit.runners.model.FrameworkField

0 commit comments

Comments
 (0)