I run the following command under the root path of my java spring boot (grade) project on my Terminal:
./gradlew clean check
But I get error message:
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not target platform: 'Java SE 12' using tool chain: 'JDK 8 (1.8)'.
How to get rid of this error?