Gradle次のことを伝える最も簡単な方法は何でしょうか。
'junit'依存関係を取得し、最新の'release'バージョンを取得します。
MavenとIvyのリポジトリーを管理することは、私にとってはちょっと新しいことです。次の手順を試しましたが、Could not resolve dependency ...エラーが発生しました。
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リポジトリを使用しようとしました:
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]" }
多分私は何かを誤解しています。依存関係の最新バージョンを取得するのはなぜそんなに難しい作業なのでしょうか?