generate dependency tree
$ ./gradlew dependencies > dep.txt
generate dependency tree and refresh dependencies
$ ./gradlew dependencies > dep.txt --refresh-dependenciesThe
--refresh-dependencies
option tells Gradle to ignore all cached entries for resolved modules and artifacts.Ref: Listing project dependencies
create java project
$ gradle init --type java-application
More info at Build Init PluginClean build.gradle file
eclipse - download sources and javadoc
apply plugin: 'java'apply plugin: 'eclipse'
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
mavenLocal()
}
$ gradle cleanEclipse eclipse
If mavenLocal() is present in your repositories, don't forget to put it at the bottom of the list.