After upgrading to Gradle 2.0: Could not find property 'Compile' on root project

前端 未结 3 1790
刺人心
刺人心 2021-02-01 01:03

To avoid warnings regarding special characters when building my Java source code, I put this line in my gradle.build which worked fine before upgrading to Gradle 2.

3条回答
  •  野的像风
    2021-02-01 01:34

    For Groovy based projects. It'd be:

    tasks.withType(GroovyCompile) {
        options.debug = true
    }
    

提交回复
热议问题