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:<
This is the equivalent Kotlin DSL version (added the buildDir prefix to make it copy the dependencies in the build folder):
task("copyDependencies", Copy::class) { from(configurations.default).into("$buildDir/dependencies") }