• Andy Wilkinson's avatar
    Configure bootRun to use project's Java toolchain by default · 7625a979
    Andy Wilkinson authored
    Previously, unlike the application plugin's run task, our bootRun task
    ignored the project's Java toolchain. This meant that the application
    was run on a JVM with the same Java version as the one being used by
    Gradle itself. This could result in a failure if the application
    required a more modern JVM.
    
    This commit updates the plugin to configure the bootRun task's
    JavaLauncher convention to be one derived from the project's Java
    toolchain. Toolchain support was introduced in Gradle 6.7 so this is
    only done when using Gradle 6.7 and later.
    
    Fixes gh-24517
    7625a979
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...