This message was deleted.
# community-support
s
This message was deleted.
t
The toolchain only applies to tasks that will process your code, not to Gradle itself, and thus not to plugins that create and configure those tasks. Because the Spring Boot plugin apparently requires a JDK 17 at a minimum, you need to run Gradle itself with such a JDK (but you're apparently running it with a JDK 11)
l
what do u mean "need to run Gradle itself with jdk11" ?
where is it set?
Copy code
java {
   toolchain {
      languageVersion = JavaLanguageVersion.of(17)
   }

   sourceCompatibility = "17"
   targetCompatibility = "17"
}
i have this in my build.gradle
n
given that your error is in jenkins, it's the JDK configured in the jenkins agent itself (aka its JAVA_HOME)
l
so maybe the JAVA_HOME in jenkins is hardecoded?
n
I don't know your infrastructure 🤷