Closed michalkrajcovic closed 1 year ago
Hello,
spring-native is in minimal maintenance mode. Please try your use case with Spring Boot 3.x and if it still breaks, please open an issue on the corresponding issue tracker (Spring Boot in this case). Thanks!
Describe the bug
org.springframework.boot.context.properties.ConfigurationPropertiesBindException
is thrown when properties class uses@ConstructorBinding
in multi-module gradle spring boot project.I’m reporting it as a bug as I can’t see any issues reported, nor documented that this is not supported in native image.
To Reproduce Environment
Sample project https://github.com/michalkrajcovic/spring-native-multi-modules-bind-properties
Compile
Run
Fails with
Runs without issues on JVM
Expected behavior Application starts without issues using JVM and native image.
Observation Does not fail when properties class uses setters see brach setter. ConstructorBinding doesn't fail in single module project see branch single-module