Skip to content

Instantly share code, notes, and snippets.

@rjernst
Created April 19, 2019 00:22
Show Gist options
  • Save rjernst/c4376f077159b73993f164ace7d81cbf to your computer and use it in GitHub Desktop.
Save rjernst/c4376f077159b73993f164ace7d81cbf to your computer and use it in GitHub Desktop.
allprojects {
apply plugin: 'base'
}
File jdkDir = project.file("${buildDir}/jdks/jdk-11.0.2")
task extractJdk {
doFirst {
mkdir jdkDir
}
}
artifacts {
add('default', [file: jdkDir, builtBy: extractJdk])
}
configure(project(':a')) {
configurations {
stuff
}
dependencies {
stuff project(':')
}
task run {
dependsOn configurations.stuff
doFirst {
println configurations.stuff.artifacts.files.singleFile
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment