简体   繁体   中英

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"
}

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM