Ich habe folgende build.gradle
Datei:Wie werden Gradle-Abhängigkeiten von der Befehlszeile aktualisiert?
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework:spring-core:4.1.1.RELEASE'
compile 'org.springframework:spring-context:4.1.1.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
ich folgenden Befehl ausführen:
$ gradle --refresh-dependencies
Aber es tut sich nichts. Die Abhängigkeiten werden nicht aktualisiert und spiegeln nicht den Klassenpfad wider. Die Ausgabe von Befehl lautet:
:help
Welcome to Gradle 2.1.
To run a build, run gradle <task> ...
To see a list of available tasks, run gradle tasks
To see a list of command-line options, run gradle --help
BUILD SUCCESSFUL
Total time: 5.999 secs
tun dies über Eclipse-Plugin gradle obwohl funktioniert.