Created
April 19, 2019 00:37
-
-
Save rjernst/ad67b6209264ee950ce321588a740a80 to your computer and use it in GitHub Desktop.
This file contains 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' | |
} | |
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