The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/fix/javaexec-toolchain-inheritance has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
749ac0edd0053c499653e12f66723f96bdbc6b1e / James Fredley 
<[email protected]>
Propagate Java toolchain to JavaExec tasks

Gradle's JavaPlugin sets toolchain conventions on JavaCompile, Javadoc,
and Test tasks but not on JavaExec tasks. This means forked JVM processes
(dbm-* migration tasks, console, shell, application context commands) use
the JDK running Gradle instead of the project's configured toolchain.

Add configureToolchainForForkTasks() to GrailsGradlePlugin that propagates
the project toolchain to all JavaExec tasks via javaLauncher.convention().
Uses convention() so individual tasks can still override via set().
Only activates when java.toolchain.languageVersion is explicitly configured,
preserving existing behavior for users without toolchains.

Test coverage: 8 JUnit Jupiter tests via Gradle TestKit covering toolchain
propagation (JavaExec, Test, ApplicationContextCommandTask, convention
override), backwards compatibility (no-toolchain), and fork settings
preservation (system properties, heap sizes).

Report URL: https://github.com/apache/grails-core/actions/runs/22104604238

With regards,
GitHub Actions via GitBox

Reply via email to