spring-boot/spring-boot-project
Andy Wilkinson 660dbb9afd Fix Maven-built native images with Docker Compose dependency
Previously, we tried to prevent spring-boot-docker-compose from
causing problems with AOT and native images by excluding it from
the AOT processing classpath. This allowed AOT processing to
succeed. We cannot apply the same exclusion to the native image
classpath so spring-boot-docker-compose was still included in the
native image. This results in a failure at runtime due to missing
reflection hints.

This commit reverts that changes that excluded
spring-boot-docker-compose from the AOT processing classpath. This
allows AOT processing to generate reflection hints but reintroduces
the failure caused by the connection details bean definitions using
an instance supplier callback. To overcome this problem we disable
DockerComposeLifecycleManager during AOT processing and in a native
image. This ensures that no attempt is made to call docker compose up
and no connection details beans are defined.

Fixes gh-35676
2023-06-21 11:44:30 +01:00
..
spring-boot Merge branch '3.0.x' into 3.1.x 2023-06-16 14:35:23 -07:00
spring-boot-actuator Remove accidentally committed code 2023-06-16 15:21:03 -07:00
spring-boot-actuator-autoconfigure Merge branch '3.0.x' into 3.1.x 2023-06-19 21:04:09 +02:00
spring-boot-autoconfigure Merge branch '3.0.x' into 3.1.x 2023-06-16 14:35:23 -07:00
spring-boot-dependencies Merge branch '3.0.x' into 3.1.x 2023-06-21 11:02:47 +01:00
spring-boot-devtools Merge branch '3.0.x' into 3.1.x 2023-06-13 13:52:10 +01:00
spring-boot-docker-compose Fix Maven-built native images with Docker Compose dependency 2023-06-21 11:44:30 +01:00
spring-boot-docs Merge branch '3.0.x' into 3.1.x 2023-06-16 14:35:23 -07:00
spring-boot-parent Provide dependency management for Testcontainers 2023-03-23 16:49:08 +00:00
spring-boot-starters Merge branch '3.0.x' into 3.1.x 2023-06-15 14:47:21 +01:00
spring-boot-test Merge branch '3.0.x' 2023-05-05 18:22:20 +01:00
spring-boot-test-autoconfigure Merge branch '3.0.x' 2023-05-22 16:31:55 +02:00
spring-boot-testcontainers Polish 2023-06-16 12:39:03 -07:00
spring-boot-tools Fix Maven-built native images with Docker Compose dependency 2023-06-21 11:44:30 +01:00