Monday, July 22, 2013

Gradle Projects In Jdee

Gradle is really great automatization system. The combination of scripting language and dependency management produces simple and powerfull tool. Influenced by idea of Maven2 Jdee plugin I have made small task that generates Jdee project file. Although the script is not comprehensive (because it does not handle all Gradle features such as source sets, tasks, and so on) I think that is can be very useful, particularly in learning Gradle.

jdee.gradle Save the script and apply it into your main project file (build.gradle):
apply from:'jdee.gradle'
then run the task
gradle jdee

Please note that the task is applied only for subprojects of multi-project builds. To make it works for standalone projects just substitute subprojects to projects in line 38.