什么是最简单的方法来告诉Gradle
以下最新发布的版本:摇篮 - 越来越依赖
检索“JUnit的依赖,并把它的最新的“版本”的版本。
管理Maven和常春藤库是有点新的给我 - 我尝试以下步骤,它们导致"Could not resolve dependency ..." error
:
写
compile "junit:junit:latest.release"
设置为仅mavenCentral()
(但是,它的作品库如果我说“junit:junit:4.10”)。写
compile "junit:junit:latest.release"
与仓库设置方式如下:
ivy { // I also tried 'http://maven.org' and other possible variants. url "http://repo1.maven.org" layout "maven" }
- 试图使用
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]" }
也许我误解的东西 - 为什么会得到最新版本的依赖的是这样一个艰巨的任务是什么?
动态版本可以是可用最新版本'latest.integration'的占位符。 [https://docs.gradle.org/current/userguide/dependency_management.html#sub:dynamic_versions_and_changing_modules] – Bhavik 2016-10-28 19:35:28