Affects: wiki
I had quite a bit of trouble building the spring project with gradle giving a lot of errors. ( No matching toolchains found for requested specification: {languageVersion=21, vendor=any, implementation=vendor-specific}
).
https://github.com/spring-projects/spring-framework/wiki/Build-from-Source mentions that I should have JDK 21 installed.
What it actually means is that JDK 21 should be available to the gradle toolchain. On windows, just placing the JDK 21 in the /program files/java folder doesn't mean gradle can find it. To find out which toolchains are supported you can run the command ./gradlew -q javaToolchains
. This also gives the user some locations where JDK 21 could be picked up.
Adding this to the wiki would have helped me a lot, and unfortunatly because it's a wiki I cannot make a pull request for this :(
Kind regards
Ties
Comment From: sdeleuze
I refined the wiki page accordingly.
Comment From: snicoll
FTR there's a wiki-documentation
type for this as we don't assign a milestone to such a change.