Skip to content

Use the bootRun javaLauncher in fork task #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tjog
Copy link

@tjog tjog commented Apr 8, 2025

Verified in a new Spring initializer project (plus springdoc and plugin) for both Java and Kotlin.

For Java, choose Java 24 as toolchain version in build.gradle but configure Gradle JVM to Java 23 or earlier.

For Kotlin, use Java 21 as bytecode version, but for illustrative purposes, downgrade Gradle JVM to Java 19 for example.

LinkageError, java.lang.UnsupportedClassVersionError occurs in forkedSpringBootRun task in both cases (but with different encountered versus supported class file versions)

Verified in a new Spring initializer project (plus springdoc and plugin)
for both Java and Kotlin.

For Java, choose Java 24 as toolchain version in build.gradle but configure Gradle JVM
to Java 23 or earlier.

For Kotlin, use Java 21 as bytecode version, but for illustrative purposes, downgrade
Gradle JVM to Java 19 for example.

LinkageError, java.lang.UnsupportedClassVersionError occurs in forkedSpringBootRun task
in both cases (but with different encountered versus supported class file versions)
@tjog tjog force-pushed the fix-bootrun-jvm branch from 82a0664 to 60a8252 Compare April 8, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant