I am having trouble with missing POM dependencies for Spring when generating Eclipse and/or Idea files. Below is my entire build.gradle file.
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
flatDir name: 'local-repo', dirs: 'local-repo'
}
dependencies {
testCompile (
['junit:junit:4.5'],
['org.mockito:mockito-core:1.8.5'],
)
compile (
['org.slf4j:slf4j-api:1.6.1'],
['commons-collections:commons-collections:3.2.1'],
['commons-lang:commons-lang:2.5'],
['jsyntaxpane:jsyntaxpane:0.9.5-b29'],
['ch.qos.logback:logback-parent:0.9.24'],
['org.springframework:spring-core:3.1.1.RELEASE'],
['org.springframework:spring-beans:3.1.1.RELEASE'],
['org.springframework:spring-context:3.1.1.RELEASE'],
)
}
This is a Java SE project, no web or JEE stuff. I am getting a failure in Spring saying that cglib isn’t available. Looking at the list of jar dependencies in either IDE you definitely see that none of the pom dependencies are being referenced and they are not getting downloaded.
I can get it working by manually adding the cglib dependency but it looks like I am going to have manually have to add all of them.
Is there something I am missing?