mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #729] [MERGED] codegen-java/kotlin: Support Spring Boot 3.x instead of 2.x #697
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/729
Author: @odenix
Created: 10/23/2024
Status: ✅ Merged
Merged: 10/25/2024
Merged by: @bioball
Base:
main← Head:codegen-spring-2📝 Commits (1)
6d6b59bcodegen-java/kotlin: Support Spring Boot 3.x instead of 2.x📊 Changes
4 files changed (+4 additions, -18 deletions)
View changed files
📝
pkl-codegen-java/src/main/kotlin/org/pkl/codegen/java/JavaCodeGenerator.kt(+0 -4)📝
pkl-codegen-java/src/test/kotlin/org/pkl/codegen/java/JavaCodeGeneratorTest.kt(+2 -5)📝
pkl-codegen-kotlin/src/main/kotlin/org/pkl/codegen/kotlin/KotlinCodeGenerator.kt(+0 -4)📝
pkl-codegen-kotlin/src/test/kotlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt(+2 -5)📄 Description
Motivation:
In Spring Boot 3.0, the annotation type
org.springframework.boot.context.properties.ConstructorBindingwas deprecated in favor oforg.springframework.boot.context.properties.bind.ConstructorBinding. In 3.2, the old annotation type was removed.As of 3.0, a
@ConstructorBindingannotation is no longer required/recommended for configuration classes with a single public constructor.Changes:
Remove generation of
@ConstructorBindingannotations in codegen-java and codegen-kotlin.Result:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.