I’ve been digging around in the userguide for a good part of the day and only because it’s still not clear do I bring it up here. Ok, moving forward with my question, how should my dependencies be fined by using group:name:version with the following artifact pattern? Basically, I want to get everything from, for example, http://svn/ivy/spring/3.6.8.RELEASE/*.jar. Here’s part of my build.gradle:
//start code repositories {
ivy {
url ‘http://svn/ivy/’
//artifactPattern “http://svn/ivy/[module]/[revision]/[artifact]-[revision].[ext]”
} }
dependencies {
//compile|runtime|testCompile|testRuntime group:name:version
compile ‘hibernate-distribution:hibernate-distruibution:3.6.8’
compile ‘spring:spring:3.6.8.RELEASE’
compile ‘mybatis-spring:mybatis-spring:1.0.3’
compile ‘mybatis:mybatis:3.1.0’
testCompile ‘junit:junit:4.10.0’
testRuntime ‘junit:junit:4.10.0’ } //end code
//start output g -dependencies The -dependencies option is deprecated - use ‘gradle dependencies’ instead :dependencies
------------------------------------------------------------ Root project ------------------------------------------------------------
archives - Configuration for archive artifacts. No dependencies
compile - Classpath for compiling the main sources.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:dependencies’. Cause: Could not resolve all dependencies for configuration ‘:compile’. Cause: Could not find group:hibernate-distribution, module:hibernate-distruibution, version:3.6.8. Required by:
:gradle:unspecified Cause: Could not find group:spring, module:spring, version:3.6.8.RELEASE. Required by:
:gradle:unspecified Cause: Could not find group:mybatis-spring, module:mybatis-spring, version:1.0.3. Required by:
:gradle:unspecified Cause: Could not find group:mybatis, module:mybatis, version:3.1.0. Required by:
:gradle:unspecified
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.962 secs //end output
//start version gradle --version
------------------------------------------------------------ Gradle 1.0-milestone-6 ------------------------------------------------------------
Gradle build time: Thursday, November 17, 2011 5:54:12 AM UTC Groovy: 1.8.4 Ant: Apache Ant™ version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_11 (Sun Microsystems Inc. 11.0-b16) OS: Linux 2.6.18-194.el5 i386