api / org.gradle.api.plugins.buildcomparison.gradle / GradleBuildInvocationSpec / getGradleVersion

getGradleVersion

@Input abstract fun getGradleVersion(): String

The Gradle version to run the build with. Defaults to the current Gradle version of the running build.

Return
The Gradle version to run the build with. Never null.