Hi there,
I stumbled upon an issue while generating the eclipse ‘.classpath’ file.
Using Gradle 1.6, and given the following minimalistic buildfile:
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
sourceSets {
intTest
}
dependencies {
testCompile (group: 'jmock', name: 'jmock-cglib', version: '1.1.0')
intTestCompile (group: 'commons-io', name: 'commons-io', version: '2.4')
}
task echoEclipseSourceSets() << {
eclipse.classpath.sourceSets.each { println it }
}
… why doesn’t ‘commons-io’ end up in the eclipse classpath? Since the eclipse plugin picks up all sourceSets when generating eclipse source directories, shouldn’t it also pick up all dependencies of those sourceSets?
… or am I missing something?
Interestingly, ‘eclipse.classpath.sourceSets’ seems to know about the intTest sourceSet: The ‘echoEclipseSourceSets’ yields:
$ gradle echoEclipseSourceSets
:echoEclipseSourceSets
source set 'int test'
source set 'main'
source set 'test'
Thanks in advance, Mike