[ 
https://issues.apache.org/jira/browse/CB-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100662#comment-14100662
 ] 

Ian Clelland commented on CB-3445:
----------------------------------

I've just committed this code, so it is now possible to create projects with a 
set of gradle build scripts, and actually build and run with gradle.

To build, either pass the {{--gradle}} command-line flag to the 
{{cordova/build}} script (in a CLI project, this lives in 
{{platforms/android/cordova/build}}), or set an environment variable and use 
the {{cordova}} CLI, like this:

{code}
ANDROID_BUILD=gradle cordova build
{code}

Gradle will also require that the {{JAVA_HOME}} environment variable is set 
correctly, or it will fail with an error like "Failed to find system Java 
compiler".

> Move Cordova-Android Build Setup to Gradle
> ------------------------------------------
>
>                 Key: CB-3445
>                 URL: https://issues.apache.org/jira/browse/CB-3445
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android
>            Reporter: Joe Bowser
>            Assignee: Ian Clelland
>            Priority: Minor
>
> Currently we're using ant for our setup, and our setup can break every time 
> that the Android SDK updates and change its build.xml.  However, the Android 
> Team has created Gradle to be more robust such that it doesn't have the same 
> problems as ant-based scripts.
> This also has the advantage of using Android Studio for development instead 
> of Eclipse, and the ability for us to bundle resources, which is something we 
> haven't been able to do before.
> Moving to Gradle has numerous advantages, but will break scripts, so this is 
> to be moved in the post-3.0 timeframe.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to