Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PaketoBuilderTests#nativeApp() is failing due to a deprecation warning being logged #37433

Closed
wilkinsona opened this issue Sep 15, 2023 · 1 comment
Assignees
Labels
type: task A general task
Milestone

Comments

@wilkinsona
Copy link
Member

Warning: The USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM environment variable is deprecated and might be removed in a future release. Please refer to the GraalVM release notes.

The failures began on July 7 (3.0.x, 3.1.x, 3.2.x).

@wilkinsona wilkinsona added the type: task A general task label Sep 15, 2023
@wilkinsona wilkinsona added this to the 3.0.x milestone Sep 15, 2023
@scottfrederick scottfrederick self-assigned this Sep 16, 2023
@scottfrederick
Copy link
Contributor

These tests started failing because of the GraalVM deprecation mentioned above. This was fixed by Paketo in paketo-buildpacks/native-image#273. Before we could get green builds from this fix, the tests started failing because AOT-generated code is causing compiler deprecation warnings in generated BeanDefinition classes:

/tmp/gradle-17837136993385756809/build/generated/aotSources/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations__BeanDefinitions.java:32: warning: [removal] TaskExecutorBuilder in org.springframework.boot.task has been deprecated and marked for removal

This is being tracked in spring-projects/spring-framework#29597.

The Gradle integration tests generally fail when there are deprecation warnings in the build output, but we selectively ignore some deprecation warnings that we have no control over. It might be possible to selectively ignore these deprecations, or we might have to ignore all deprecations for this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants