Skip to content

Instantly share code, notes, and snippets.

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