Our sourceSets look like (simplified):
sourceSets {
main {
java {
srcDir 'src'
}
}
javascriptCompress {
resources {
srcDir 'src'
include '**/viewer/**/*.js'
include '**/viewer/*.js'
}
}
}
This results in a .classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/viewer/**/*.js|**/viewer/*.js" kind="src" path="src"/>
We have try to as first and as last sourceSets follow
eclipseClasspath {
java {
srcDir 'src'
}
}
But it does not change any. This means the order of declaration is not important. This sounds like a bug. What is the best solution for it?