I have a custom compile task.
task compileSpeedTest(type: JavaCompile) { classpath = files('build') source = fileTree('src/test/java/speed') destinationDir = file('bin') }
Gradle doesn't try to download dependencies before its execution. I cannot find anywhere a task name which does it to add it on list dependsOn.
Downloading java dependencies is possible, if you actually really need to download them into a folder. Download the dependencies (and their dependencies) into the folder runtime when you execute gradle getDeps .
Downloading java dependencies is possible, if you actually really need to download them into a folder.
Example:
apply plugin: 'java' dependencies { runtime group: 'com.netflix.exhibitor', name: 'exhibitor-standalone', version: '1.5.2' runtime group: 'org.apache.zookeeper', name: 'zookeeper', version: '3.4.6' } repositories { mavenCentral() } task getDeps(type: Copy) { from sourceSets.main.runtimeClasspath into 'runtime/' }
Download the dependencies (and their dependencies) into the folder runtime
when you execute gradle getDeps
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With