Applying the IDEA plugin to this trivial Gradle multi-project build yields a barrage of spurious (?) deprecation warnings of the form: “Attempting to change configuration {foo} after it has been included in dependency resolution. This behaviour has been deprecated and is scheduled to be removed in Gradle 3.0”?
Run:
mkdir -p parent/child
Set contents of parent/settings.gradle
:
include 'child'
Set contents of parent/build.gradle
:
allprojects {
apply plugin: 'idea'
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.guava:guava:18.0'
}
}
Set contents of parent/child/build.gradle:
dependencies {
compile 'com.orientechnologies:orientdb-graphdb:2.0.8'
}
Run:
gradle wrapper --gradle-version 2.4
Run:
./gradlew --refresh-dependencies clean cleanIdea cleanIdeaWorkspace idea build
Witness output:
:clean
:child:clean
:cleanIdeaModule
:cleanIdeaProject
:cleanIdea
:child:cleanIdeaModule
:child:cleanIdea
:cleanIdeaWorkspace
:ideaModule
Attempting to change configuration ':runtime' after it has been included in dependency resolution. This behaviour has been deprecated and is scheduled to be removed in Gradle 3.0
Attempting to change configuration ':testCompile' after it has been included in dependency resolution. This behaviour has been deprecated and is scheduled to be removed in Gradle 3.0
Attempting to change configuration ':compile' after it has been included in dependency resolution. This behaviour has been deprecated and is scheduled to be removed in Gradle 3.0
:ideaProject
:ideaWorkspace
:idea
:child:ideaModule
:child:idea
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
:child:compileJava UP-TO-DATE
:child:processResources UP-TO-DATE
:child:classes UP-TO-DATE
:child:jar
:child:assemble
:child:compileTestJava UP-TO-DATE
:child:processTestResources UP-TO-DATE
:child:testClasses UP-TO-DATE
:child:test UP-TO-DATE
:child:check UP-TO-DATE
:child:build
BUILD SUCCESSFUL
Total time: 29.056 secs
This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html