Skip to content

Instantly share code, notes, and snippets.

@johnjohndoe
Created October 28, 2022 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnjohndoe/26b84d57032ff28dd7d8885907a9e004 to your computer and use it in GitHub Desktop.
Save johnjohndoe/26b84d57032ff28dd7d8885907a9e004 to your computer and use it in GitHub Desktop.
Java version used by Gradle
import org.gradle.internal.jvm.Jvm
println "Gradle uses Java ${Jvm.current()}"
// example output: Gradle uses Java 17.0.4.1 (JetBrains s.r.o. 17.0.4.1+0-17.0.4.1b469.62-9127311)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment