Gradle does not use dependency on javaee into account


(Malte Schirmacher) #1

Hello,

i have the following depndencies declared:

dependencies {
compile group: ‘javax’, name: ‘javaee-api’, version: ‘7.0’

// compile group: ‘org.apache.commons’, name: ‘commons-lang3’, version: ‘3.4’
// compile group: ‘commons-io’, name: ‘commons-io’, version: ‘2.4’
//
// compile group: ‘org.apache.lucene’, name: ‘lucene-core’, version: ‘5.2.0’
// compile group: ‘org.apache.lucene’, name: ‘lucene-analyzers-common’, version: ‘5.2.0’
// compile group: ‘org.apache.lucene’, name: ‘lucene-facet’, version: ‘5.2.0’
// compile group: ‘org.apache.lucene’, name: ‘lucene-queries’, version: ‘5.2.0’
// compile group: ‘org.apache.lucene’, name: ‘lucene-queryparser’, version: ‘5.2.0’
//
//
// compile project(’:MFWAAnalyzer:mfwa-analyzer-config-library’)
// compile project(’:MFWAAnalyzer:mfwa-analyzer-library’)
}

the depdency in javaee is taken into account only if i comment out all the rest (like pasted).
When i clear the cache and remove the comments i can see that everything is downlioad EXCEPT ON the javaee stuff. Thats downloaded only if i comment out the remainder. Even after having downloaded everything i still get compile errors due to the missing javaee on the classpath. Whats going on there? :-/

Regards
Malte