-
Notifications
You must be signed in to change notification settings - Fork 158
Closed
Description
Environment:
- VS Code Version:
- Extension Version:
- JDK Type & Version:
- OS Type & Version:
Step to Reproduce:
I'm trying to run my springboot application, but immediately running into a java version issue.
The "invalid source release: 21" seems to suggest that a non-Java-21 version is being used by Build Server for Gradle? If I check the java version in the vs code terminal, it seems fine:
➜ tvlr-app git:(main) java --version
openjdk 21 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
as well as via gradle:
➜ tvlr git:(main) ./gradlew --version
------------------------------------------------------------
Gradle 8.3
------------------------------------------------------------
Build time: 2023-08-17 07:06:47 UTC
Revision: 8afbf24b469158b714b36e84c6f4d4976c86fcd5
Kotlin: 1.9.0
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21 (Oracle Corporation 21+35-2513)
OS: Mac OS X 14.1.1 aarch64
And indeed, if install the Gradle vs code extension and run the same gradle tasks from that extension tab, it works fine:

But it's when I try to run the springboot application "run" from the springboot extension tab that it's giving the original output failure for the "Build Server for Gradle" terminal tab.
Expected Behavior:
Actual Behavior:
Related Issues:
Metadata
Metadata
Assignees
Labels
No labels