gradle-testsets-plugin icon indicating copy to clipboard operation
gradle-testsets-plugin copied to clipboard

testSet 3.0 does not add dependencies to Eclipse classpath by default

Open dgeissl opened this issue 4 years ago • 1 comments

After upgrading to version 3.0 we've found, that the integrationTestImplementation dependencies are not present in the eclipse classpath anymore. Adding the configuration via:

eclipse {
    classpath {
        plusConfigurations += configurations.integrationTestImplementation
    }
}

failed with Resolving configuration 'integrationTestImplementation' directly is not allowed. After some digging I found the following code/comment: https://github.com/unbroken-dome/gradle-testsets-plugin/blob/master/src/main/kotlin/org/unbrokendome/gradle/plugins/testsets/TestSetsPlugin.kt#L199-L203

adding the property to my gradle.properties file it started working again. After that I am curious what makes you think the EclipseModel is not evaluated anymore, so one does have to enable it manually?

Used Eclipse Version is: Version: 2020-03 (4.15.0) Build id: 20200313-1211 Buildship: Eclipse Plug-ins for Gradle 3.1.4.v20200326-1718

dgeissl avatar Apr 22 '20 12:04 dgeissl

I have

testSets {
    integrationTest
}

in my build.gradle and have found too that using version 3.0.1 of testsets the dependencies for integrationTestImplementation does not get added unless I add org.unbroken-dome.test-sets.modifyEclipseClasspath=true to my gradle.properties file.

jpschewe avatar Jul 03 '20 02:07 jpschewe