How to change the version of the 'default gradle wrapper' in IntelliJ IDEA?

前端 未结 8 1183
忘掉有多难
忘掉有多难 2020-12-23 15:42

I want to use Gradle 1.10 instead of 1.9. I cannot seem to find where to change this.

If I put this:

task wrapper(t         


        
8条回答
  •  臣服心动
    2020-12-23 16:13

    ./gradlew wrapper --gradle-version=5.4.1 --distribution-type=bin

    https://gradle.org/install/#manually

    To check:

     ./gradlew tasks
    

    To input it without command:

    go to-> gradle/wrapper/gradle-wrapper.properties distribution url and change it to the updated zip version

    output:

     ./gradlew tasks
    Downloading https://services.gradle.org/distributions/gradle-5.4.1-bin.zip
    ...................................................................................
    
    Welcome to Gradle 5.4.1!
    
    Here are the highlights of this release:
     - Run builds with JDK12
     - New API for Incremental Tasks
     - Updates to native projects, including Swift 5 support
    
    For more details see https://docs.gradle.org/5.4.1/release-notes.html
    
    Starting a Gradle Daemon (subsequent builds will be faster)
    
    > Starting Daemon 
    

提交回复
热议问题