Ignore Gradle Build Failure and continue build script?

后端 未结 2 1135
逝去的感伤
逝去的感伤 2020-12-17 16:50

Managing Android\'s dependencies with Gradle is done in a weird way. They have to be downloaded differently into a local repo. This is a pain when setting up CI build as the

相关标签:
2条回答
  • 2020-12-17 17:22

    add this in the build.gradle file :

    tasks.withType(JavaCompile) {
        options.failOnError(false)
    }
    
    0 讨论(0)
  • 2020-12-17 17:34

    The flag to use is --continue.

    From the documentation:

    Continues task execution after a task failure.

    0 讨论(0)
提交回复
热议问题