This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Feb 4, 2013 11:36 PM by Jeff Storey  
Jeff Storey Newbie 16 posts since
Apr 17, 2012
Currently Being Moderated

Feb 4, 2013 8:10 PM

Gradle subprojects as modules

Is there any way to have gradle subprojects automatically become modules in the parent project within intellij?         

Denis Zhdanov JetBrains 1,421 posts since
Oct 20, 2007
Currently Being Moderated
Feb 4, 2013 8:50 PM in response to: Jeff Storey
Re: Gradle subprojects as modules

Hi Jeff,

 

Every time you import from parent's build.gradle, it's sub-projects are configured as IJ modules. Do you mean a different use-case?

 

Denis

Denis Zhdanov JetBrains 1,421 posts since
Oct 20, 2007
Currently Being Moderated
Feb 4, 2013 11:19 PM in response to: Jeff Storey
Re: Gradle subprojects as modules

The easiest way is to re-import the whole project.

 

Alternatively you can refresh project structure, import all gradle-local project structure entities and remove all ide-local entities.

 

Please note that gradle auto-import is on the way (will be imlemented this or the next week). It will be possible to manually update the plugin to use the feature. So, feel free to keep track on gradle improvements.

 

Denis

More Like This

  • Retrieving data ...