I'm not sure if this intentional, but this can cause unexpected behavior because these tests sets are used to configure other plugins. For example, because of this the test source sets (testCompileClasspath, testRuntimeClasspath, and testAnnotationProcessor) are duplicated in the IDEA module scopes. These configurations are already added to the IDEA module scopes by the IDEA plugin.
Here a minimal reproduction of the issue:
build.gradle:
plugins {
id 'java'
id 'idea'
id 'org.unbroken-dome.test-sets' version '2.2.1'
}
task testSetsInfo {
doLast {
testSets.each {
println it
}
}
}
task scopesInfo {
doLast {
idea.module.scopes.TEST.plus.each {
println it
}
}
}
I'm not sure if this intentional, but this can cause unexpected behavior because these tests sets are used to configure other plugins. For example, because of this the test source sets (
testCompileClasspath
,testRuntimeClasspath
, andtestAnnotationProcessor
) are duplicated in the IDEA module scopes. These configurations are already added to the IDEA module scopes by the IDEA plugin.Here a minimal reproduction of the issue:
build.gradle:
Output: