Simplify Gradle magic (#18987)

This commit is contained in:
Mikkel Nygaard Ravn
2018-07-02 13:46:07 +02:00
committed by GitHub
parent 2a65505e8a
commit 1eee14ca9c
2 changed files with 10 additions and 8 deletions

View File

@@ -18,14 +18,6 @@ allprojects {
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/android_gen"
}
subprojects {
project.evaluationDependsOn(':flutter')
}
task clean(type: Delete) {
delete rootProject.buildDir
}

View File

@@ -17,3 +17,13 @@ plugins.each { name, path ->
gradle.include ":$name"
gradle.project(":$name").projectDir = pluginDirectory
}
gradle.getGradle().projectsLoaded { g ->
g.rootProject.afterEvaluate { p ->
p.subprojects { sp ->
if (sp.name != 'flutter') {
sp.evaluationDependsOn(':flutter')
}
}
}
}