Created
April 19, 2019 00:22
-
-
Save rjernst/c4376f077159b73993f164ace7d81cbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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