dependencies {
compile 'org.springframework:spring-core:4.0.6.RELEASE'
compile 'org.springframework:spring-context:4.0.6.RELEASE'
compile 'org.apache.commons:commons-email:1.3.3'
// why does not begin with 'compile'?
jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
What went wrong:
Could not resolve all dependencies for configuration ':compile'.
Could not find org.springframework:spring-core:4.0.6.RELEASE.
Required by:
:mymodule:unspecified
Could not find org.springframework:spring-context:4.0.6.RELEASE.
Required by:
:mymodule:unspecified
Could not find cglib:cglib:2.2.2.
Required by:
:mymodule:unspecified
Could not find com.force.api:force-wsc:22.0.0.
Required by:
:ForceOnbaseImportNB:unspecified
Could not find org.apache.commons:commons-email:1.3.3.
Required by:
:mymodule:unspecified
Could not find com.sun.xml.bind:jaxb-xjc:2.2.4-1.
Required by:
:mymodule:unspecified
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
When I added just this:
apply plugin: 'jaxb'
buildscript { repositories { mavenLocal() mavenCentral()
}
dependencies { compile 'org.springframework:spring-core:4.0.6.RELEASE' compile 'org.springframework:spring-context:4.0.6.RELEASE' compile 'org.apache.commons:commons-email:1.3.3' // why does not begin with 'compile'? jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
}
I get an error:
$ gradle build Download http://repo1.maven.org/maven2/no/entitas/gradle/jaxb/gradle-jaxb-plugin/2.0/gradle-jaxb-plugin-2.0.pom Download http://repo1.maven.org/maven2/no/entitas/gradle/jaxb/gradle-jaxb-plugin/2.0/gradle-jaxb-plugin-2.0.jar The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. :generateSchemaSource UP-TO-DATE :compileJava
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all dependencies for configuration ':compile'.
BUILD FAILED
Total time: 5.852 secs