In Maven-land, anytime I want to simply pull down the transitive dependencies for a particular POM file, I just open a shell, navigate to where the POM is located, and run:
mvn dependency:copy-dependencies
And boom, Maven creates a target/
directory inside the current one and places all the transitively-fetched JARs to that location.
I am now trying to make the switch over to Gradle, but Gradle doesn't seem to have the same feature. So I ask: Does Gradle have an equivalent to Maven's copy-dependencies
? If so, can someone provide an example? If not, would other devs find this to be a worthwhile contribution to the Gradle community?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…