What would be the easiest way to tell Gradle following:
Restore the junit dependency and grab the latest release.
Managing the Maven and Ivy repositories is somewhat new to me - I followed these steps and they led to a "Could not resolve dependency ..." error :
Write compile "junit:junit:latest.release" with repositories installed only on mavenCentral() (however it works if I say "junit: junit: 4.10").
Write compile "junit:junit:latest.release" with the repository set as follows:
ivy { // I also tried 'http://maven.org' and other possible variants. url "http://repo1.maven.org" layout "maven" }
- Trying to use
Spring Source Ivy repository :
ivy { artifactPattern "http://repository.springsource.com/ivy/libraries/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" ivyPattern "http://repository.springsource.com/ivy/libraries/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" }
Perhaps I misunderstand something - why get the latest version of dependencies, such a difficult task, what?
java maven dependencies gradle ivy
Yippie-Ki-Yay Apr 29 '12 at 7:22 2012-04-29 07:22
source share