Simplify Gradle magic (#18987)
This commit is contained in:
committed by
GitHub
parent
2a65505e8a
commit
1eee14ca9c
@@ -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
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user