Gradle - получение последней версии релиза зависимости

Что бы было проще всего сказатьGradle следующие:

Retrieve 'junit' dependency and take its latest 'release' version.

Управление репозиториями Maven и Ivy является для меня чем-то новым. Я попробовал следующие шаги, и они приводят кCould not resolve dependency ... ошибка:

Write compile "junit:junit:latest.release" with repositories set to only mavenCentral() (however, it works if I say "junit:junit:4.10").

Write compile "junit:junit:latest.release" with repository set the following way:

<code>ivy {
    // I also tried 'http://maven.org' and other possible variants.           
    url "http://repo1.maven.org" 
    layout "maven"
}
</code>

Attempted to use Spring Source Ivy repository:

<code>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]"
}
</code>

Может быть, я что-то неправильно понимаю. Почему бы получитьlatest версия зависимости будет такой сложной задачей?

Ответы на вопрос(5)

Ваш ответ на вопрос