unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

testSet 3.0 does not add dependencies to Eclipse classpath by default #110

Open dgeissl opened 4 years ago

dgeissl commented 4 years ago

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

jpschewe commented 4 years ago

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.