Gradle-aware make differents with gradle task
xcv58 opened this issue · comments
xcv58 commented
The Gradle-aware make can't recognize the *Maybe task we injected.
xcv58 commented
gradle.projectsEvaluated
only works for command line.
In Android Studio, dependsOn
in gradle.projectsEvaluated
doesn't work.
We can use afterEvaluate
to avoid this issue. But it requires change of build.gradle
for every subproject.
One possible way is: using a custom plugin for every project that using maybe syntax
apply plugin: 'edu.buffalo.cse.maybe.application'
apply plugin: 'edu.buffalo.cse.maybe.library'
to replace original android plugins:
apply plugin: 'com.android.application'
apply plugin: 'com.android.library'
Like the official Application plugin
Applying the Application plugin also implicitly applies the Java plugin.
It's reasonable than use the top-level build.gradle
to indicate which subproject use maybe syntax.