You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: include gax testlib for native image testing (#11556)
* fix: include gax testlib for native image testing
gax-java [contains native-image configurations](https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/test/resources/META-INF/native-image/com.google.api/gax/native-image.properties) that are common to all libraries.
This fixes the ongoing nightly failures with messages such as:
```
1) If it is intended that objects of type 'jdk.proxy4.$Proxy68' are persisted in the image heap, add
'--initialize-at-build-time=org.junit.Ignore,java.lang.annotation.Annotation'
```
and
```
1) If it is intended that objects of type 'org.junit.runners.model.FrameworkField' are persisted in the image heap, add
'--initialize-at-build-time=org.junit.runners.model.FrameworkField'
```
The gax testlib [includes these classes](https://github.com/googleapis/sdk-platform-java/blob/main/gax-java/gax/src/test/resources/META-INF/native-image/com.google.api/gax/native-image.properties):
```
Args=--initialize-at-build-time=java.lang.annotation.Annotation,\
org.junit.experimental.categories.Category,\
org.junit.experimental.categories.CategoryValidator,\
org.junit.Ignore,\
org.junit.runner.RunWith,\
org.junit.runners.model.FrameworkField,\
org.junit.validator.AnnotationValidator,\
org.junit.vintage.engine.discovery.FilterableIgnoringRunnerDecorator,\
org.junit.vintage.engine.discovery.IgnoringRunnerDecorator
```
* fix: include gax testlib in specific poms
* chore: run lint job on java 17
This matches the minimum supported java version by the spotify fmt plugin
0 commit comments