spring-boot/spring-boot-project/spring-boot-tools
Andy Wilkinson ef5fbb0669 Configure bootBuildImage's targetJavaVersion using a provider
Previously, the targetJavaVersion property of bootBuildImage was set
using the project's target compatibility directly. This meant that
property's value would reflect the configured target compatibility at
the time of the task's creation and any subsequent changes to the
target compatibility would be missed.

This commit updates the registration of the bootBuildImage task to set
the value of the targetJavaVersion property using a provider. This
indirection means that the project's target compatibility isn't read
until the value of the targetJavaVersion is read, allowing any changes
to the target compatibility to be picked up even if they're made after
the bootBuildImage task has been created.

Fixes gh-26297
2021-04-29 11:36:03 +01:00
..
spring-boot-antlib
spring-boot-autoconfigure-processor
spring-boot-buildpack-platform Preserve file permissions in images built by Gradle 2021-04-08 12:56:41 -05:00
spring-boot-configuration-metadata Update copyright year of changed files 2021-03-23 12:50:49 -07:00
spring-boot-configuration-processor Polish "Fix ordering of metadata entries" 2021-04-28 14:07:37 +02:00
spring-boot-gradle-plugin Configure bootBuildImage's targetJavaVersion using a provider 2021-04-29 11:36:03 +01:00
spring-boot-jarmode-layertools
spring-boot-loader Consistent use of @deprecated since 2021-03-30 09:20:30 -07:00
spring-boot-loader-tools Ensure that upstream jars have been built 2021-03-30 20:51:33 +01:00
spring-boot-maven-plugin Include optional shade plugin in published pom 2021-04-14 15:02:42 -07:00
spring-boot-test-support