I know about JavaVersion.current()
to determine the JVM version being used. But is there a way to determine whether the JVM is from Oracle, OpenJDK, etc?
Yes, there is always the option to check the system prop "java.vendor"
, but since Gradle already handles this for the Java version I wonder if there is a convenience for provider as well?
From what I can tell from the Source Code, there is no convenience function to retrieve the Java vendor string. Gradle relies on system property java.vendor
as well in internal code.