blue-systems-group / project.maybe.android.library

Maybe Library, under develop, NOT ready for use!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle-aware make differents with gradle task

xcv58 opened this issue · comments

commented

The Gradle-aware make can't recognize the *Maybe task we injected.

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.