spring-native icon indicating copy to clipboard operation
spring-native copied to clipboard

Support for Gradle configuration cache

Open darxriggs opened this issue 2 years ago • 1 comments

Running an application using the Gradle configuration cache ./gradlew --configuration-cache bootRun with v0.11.5 fails with this output:

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

2 problems were found storing the configuration cache.
- Task `:generateAot` of type `org.springframework.aot.gradle.tasks.GenerateAotSources`: cannot serialize object of type 'org.gradle.api.internal.file.DefaultSourceDirectorySet', a subtype of 'org.gradle.api.file.SourceDirectorySet', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.4.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:generateAot` of type `org.springframework.aot.gradle.tasks.GenerateAotSources`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/7.4.2/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

darxriggs avatar May 13 '22 10:05 darxriggs

Thanks for the report!

mhalbritter avatar Jun 09 '22 11:06 mhalbritter

Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.

As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer.

Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3.

sdeleuze avatar Jan 02 '23 11:01 sdeleuze