Gradle IDEA配置

Dan*_*lev 5 intellij-idea gradle

在这里读到我可以使用这些参数调整某些设置:

idea {
    module {
        downloadJavadoc = false    
        downloadSources = true
    }
}
Run Code Online (Sandbox Code Playgroud)

但是当我尝试构建时出现错误:

Could not find method idea() for arguments
Run Code Online (Sandbox Code Playgroud)

Ori*_*Dar 13

请先申请IDEA插件:

apply plugin: 'idea'