Without Kapt Configured the @ConfigurationProperties
are not available in container labels org.springframework.boot.spring-configuration-metadata.json
and org.springframework.cloud.dataflow.spring-configuration-metadata.json
When Kapt is configured then the properties are available.
The configuration properties are always working as expected in terms of populating values.
./gradlew clean check -PuseKapt=true
./gradlew clean check -PuseKapt=false
./gradlew clean bootBuildImage -PuseKapt=true
docker inspect -f '{{ json .Config.Labels }}' kapt-demo:1.0.0-SNAPSHOT > kapt-demo-labels.json
jq -r '."org.springframework.cloud.dataflow.spring-configuration-metadata.json"' kapt-demo-labels.json > valid.json
jq . valid.json
./gradlew clean bootBuildImage -PuseKapt=false
docker inspect -f '{{ json .Config.Labels }}' kapt-demo:1.0.0-SNAPSHOT > kapt-demo-invalid-labels.json
jq -r '."org.springframework.cloud.dataflow.spring-configuration-metadata.json"' kapt-demo-invalid-labels.json > invalid.json
jq . invalid.json