gradlegradle-plugin

Programmatically determine Gradle version from within Gradle plugin


How can I retrieve the version of Gradle itself programmatically from within a Gradle plugin?


Solution

  • Just found out one can get at it using either

    or