mirror of
https://github.com/apple/pkl.git
synced 2026-01-14 15:43:41 +01:00
Motivation: In Spring Boot 3.0, the annotation type `org.springframework.boot.context.properties.ConstructorBinding` was deprecated in favor of `org.springframework.boot.context.properties.bind.ConstructorBinding`. In 3.2, the old annotation type was removed. As of 3.0, a `@ConstructorBinding` annotation is no longer required/recommended for configuration classes with a single public constructor. Changes: Remove generation of `@ConstructorBinding` annotations in codegen-java and codegen-kotlin. Result: - Generated code is compatible with Spring Boot 3.x. (Verified with locally updated pkl-spring.) - Generated code is no longer compatible with Spring Boot 2.x. To use Pkl 0.27 and later with Spring Boot 2.x, use Pkl 0.26's code generator. - Fixes #139.