We just switched to Gradle 1.9 and are now using maven to retrieve our external dependencies like so:
repositories {
mavenCentral() }
dependencies {
compile ‘org.slf4j:slf4j-api:1.7.2’ }
My question is how to get maven dependencies into our distribution when they’re needed for runtime. Previously we were doing something like this: task dist(type: Tar) {
How do I get gradle to just copy the compiled jar, together with all of its dependencies and transitive dependencies, to an arbitrary directory, without zipping it up?