简体   繁体   中英

determining java version used in gradle build

  • Complementary to this question: tell-gradle-to-use-specific-java-version
  • How can I determine (verify) the java version actually used in gradle build ?
  • After a successful ./gradlew build , I looked for javac , but it was just in a binary file:
$ grep -rn "javac"
Binary file .gradle/4.6/taskHistory/taskHistory.bin matches
  • I have many java versions installed, so a mixup is possible.
  • Is there any way to verify the java version?

./gradlew --version will tell you which jdk version you are using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM