Android Studio Plugin for gradle building on external tools
This plugin can run tools (e.g. shell, python, perl, etc) with Gradle arguments and tasks, instead of the default gradle build before run.
This plugin is not working on AS2.2.
I am not planning to fix this for now.
Android Studio >= 1.5, <= 2.1
This plugin was created to build on Google Compute Engine instead of my slow machine :)
-
Download latest
GradleExternalBuildPlugin.zip
from "Releases". -
Open Android Studio's Preferences and go to "Plugins".
-
Select "Install plugin from disk..." and install this plugin from
GradleExternalBuildPlugin.zip
. -
Restart Android Studio.
-
Open Preferences and choose "Gradle External Build" in "Build, Execution, Deployment".
-
Set your build program path and Parameters in "Program" and "Parameters".
You can insert "Macro"s, then macro texts will be replaced with build environment variables.
In addition to default "Macro"s, you can replace
$GRADLE_ARGS$
and$GRADLE_TASKS$
with gradle arguments (e.g.-Pandroid.optional.compilation=INSTANT_DEV,-Pandroid.injected.build.api=21,
) and gradle tasks (e.g.:app:assembleDebug,:app:assemble,:app:assembleRelease,
) in "Parameters". -
Select "Edit Configurations..." on configurations button or in "Run" menu.
-
Add new "Android Configuration" and add "Gradle Make on External Tool" to "Before launch" section.
-
Remove "Gradle-aware Make" and set other configuration preferences.
-
Choose created Build Configuration on configurations button.
-
Run.
Tasks and arguments text is joined with commas(,
). If joined variables contain commas, back slashes (\
) will be added before them.
See example.sh
.
See LICENCE.md
.