feedback on gradle plugin


I have been using gradle in my project for some time.  My gradle project has about 20 sub projects and they are arranged in a side by side structure (using the includeFlat method).  I would really like to use the gradle plugin, but it is still of limited use to me.  

My first problem is that the includeFlat structure doesn't appear to work.   Perhaps I'm doing something wrong, but I can't get it to work.   I think this issue has been reported before:
https://youtrack.jetbrains.com/issue/IDEA-137835
https://youtrack.jetbrains.com/issue/IDEA-136321
I can work around this by duplicating my root script at root level.    It took me several hours to work this out.

My gradle project is quite big.   With 20 subprojects, I have a tree of about 300 tasks.    I only routinely use about 5 of these.  The "Run Configurations" item is useful, but I still have far too much to search through to find the ones I use.    It would be great if I could identify the ones that I use most.

I was hoping that it would help me develop the gradle scripts by providing break points and a debugger.  But I can't get that to work.  This, on it's own, would make the plugin useful to me.
https://youtrack.jetbrains.com/issue/IDEA-119494

I don't really want to have to import a gradle project to create my intellij project.    I already have an intellij project and would just like to add the gradle script to it.    Perhaps a bit like adding an ant build to a project.



So I don't use the gradle plugin.    I use my own ant scripts to launch the GradleMain java class with appropriate arguments.  However I feel that intellij should be able to run gradle projects like mine.    Also, I would dearly love to debug gradle scripts.

1 comment
Comment actions Permalink

Thanks for the feedback!

You right, there is a limited support for gradle projects using "includeFlat" option. We are going to improve it in the next release.
However you can workaround it using Gradle Run Configurations: use your root project path and (possibly) fully qualified task name

I only routinely use about 5 of these.  The "Run Configurations" item is useful, but I still have far too much to search through to find the ones I use.    It would be great if I could identify the ones that I use most.

You can create Gradle Run Configurations for those 5 tasks with proper parameters and use it, e.g.:
gradle.png

More over, you can assign shortcuts for these Gradle Run Configurations to speed-up things

0

Please sign in to leave a comment.