I have a custom compile task.
task compileSpeedTest(type: JavaCompile) { classpath = files(\'build\') source = fileTree(\'src/test/java/speed\')
I have found this answer https://stackoverflow.com/a/47107135/3067148 also very helpful:
gradle dependencies will list the dependencies and download them as a side-effect.
gradle dependencies