Skip to content

BootRun does not consider configured javaLauncher when determining JVM arguments for an optimized launch #24512

@jeffbswope

Description

@jeffbswope

As of Spring Boot 2.4.1 and Grade 6.7.1, BootRun is assuming that the JVM that will be running the application is the same as the version running Gradle. The toolchain support means this may no longer be the case.

This leads to the re-appearance of a warning message first addressed in this fix:
scope-demo@af223c2

When running Gradle in Java8 and targeting Java15, the warning message arises due to the inclusion of the deprecated -Xverify:none parameter.

More details and minimal repro here: https://github.com/jeffbswope/spring-boot-grade-toolchain

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions