luthien
luthien

Reputation: 1305

Gradle and Gradle wrapper versions

Can I have Gradle of version 2.10 and inside the build.gradle define a wrapper of version 3.0?

task wrapper(type: Wrapper) {
    gradleVersion = "3.0"
}

Upvotes: 2

Views: 427

Answers (1)

Henry
Henry

Reputation: 43728

The configuration in build.gradle just has influence for the wrapper task. It will create the wrapper configuration with this version if you execute gradle wrapper.

Alternatively you can just change the version directly in the gradle-wrapper.properties as you did.

Upvotes: 3

Related Questions