[Gradle] provided scope for non-war projects

Gradle 1.11:

在root的build.gradle中加入如下代码

allprojects  {
    configurations {
        provided
    }
}
subprojects {
    sourceSets {
        main.compileClasspath += configurations.provided
        test.compileClasspath += configurations.provided
        test.runtimeClasspath += configurations.provided
    }
}


你可能感兴趣的:(gradle,provided)