Monday, June 3, 2013

Gradle branch merged

Good news for anyone who wants to try new build system for Android projects announced at Google I/O based on Gradle. Our feature branch is now merged into regular nbandroid sources and the first early-early preview is available from our update center together with latest version of Attila Kelemen's Gradle plugin for NetBeans.

Needless to say that this wouldn't be possible without Attila who made plenty of changes in his plugin to open it for extensions like Android. Thanks a lot. As you can see we did it in less than three weeks and we know there are many more things that needs to be done.

What is working and what is not:
  • Android projects based on Gradle are recognized. Gradle 1.6 (or newer) and Android's Gradle plugin 0.4 or newer are required.
  • Build and run actions are tied to assembleDebug tasks (note that sometimes you have to set location of Android SDK in Tools | Options | Miscelanelous | Android to enable communication with the device).
  • Classpath is hard-coded to use debug buildType at the moment and recognizes dependency on JARs and AARs but surely there will be various glitches.
  • Run tries to deploy the application and starts its main activity. Customization of this behavior will be added.
  • UI in projects tab will be modified soon to better accommodate all the parts of Android project.
  • Support for test editing and running is not there yet.
  • XML editing should be on the same level as for the original project type.
  • As a side effect when using Gradle projects for pure Java development with both Gradle and NBAndroid plugin installed there will be some performance penalty during project initialization.
Final note: the functionality will be locked to NBAndroid.org subscribers soon to get funding for this project. If you want to see this effort completed consider the subscription now. I have to repeat this again: Oracle (owner of NetBeans) is not investing here and you cannot expect it at least until their lawsuit against Android is solved and there is no sponsoring from Google either which is even more sad as they now directly support Eclipse and their IntelliJ based Android Studio.

2 comments: