diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/run/BootRun.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/run/BootRun.java index b7e9efc882..3a9b47832a 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/run/BootRun.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/run/BootRun.java @@ -18,7 +18,6 @@ package org.springframework.boot.gradle.tasks.run; import java.lang.reflect.Method; -import org.gradle.api.JavaVersion; import org.gradle.api.file.SourceDirectorySet; import org.gradle.api.tasks.Input; import org.gradle.api.tasks.JavaExec; @@ -72,7 +71,6 @@ public class BootRun extends JavaExec { public void exec() { if (this.optimizedLaunch) { setJvmArgs(getJvmArgs()); - JavaVersion.current(); if (!isJava13OrLater()) { jvmArgs("-Xverify:none"); }