Generating multi-module IDEA project from multi-project Gradle build

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Generating multi-module IDEA project from multi-project Gradle build

evgenyg
Hi,

For some reason I can't get multi-module IDEA project generated from multi-project Gradle build.

Here's the project: https://github.com/evgeny-goldin/rest-clients/tree/idea-plugin (with 4 subprojects) and by running "gradle idea" I only have two files generated in the root directory - "rest-clients.ipr" and "rest-clients.iml", regardless of what I tried. Can you see what is wrong with this build? Gradle v1.0.

Thanks!

Warm regards,
Evgeny
Best regards,
Evgeny
evgeny-goldin.com
Reply | Threaded
Open this post in threaded view
|

RE: Generating multi-module IDEA project from multi-project Gradle build

rnavarette
This post has NOT been accepted by the mailing list yet.

We use:

 

allprojects {

                ...

 

                // needs to be applied both at root and subproject levels so that the project and module files are generated

                apply from: "${rootDir}/gradle/idea.gradle"

 

                ...

}

 

Looks like your 'apply' is just in the wrong place?

 

ray

 

From: evgenyg [via Gradle] [mailto:ml-node+[hidden email]]
Sent: Monday, July 16, 2012 12:29 PM
To: Ray Navarette
Subject: Generating multi-module IDEA project from multi-project Gradle build

 

Hi,

 

For some reason I can't get multi-module IDEA project generated from multi-project Gradle build.

 

Here's the project: https://github.com/evgeny-goldin/rest-clients/tree/idea-plugin (with 4 subprojects) and by running "gradle idea" I only have two files generated in the root directory - "rest-clients.ipr" and "rest-clients.iml", regardless of what I tried. Can you see what is wrong with this build? Gradle v1.0.

 

Thanks!

 

Warm regards,

Evgeny

Best regards,
Evgeny
evgeny-goldin.com

 


If you reply to this email, your message will be added to the discussion below:

http://gradle.1045684.n5.nabble.com/Generating-multi-module-IDEA-project-from-multi-project-Gradle-build-tp5709937.html

To start a new topic under gradle-user, email ml-node+[hidden email]
To unsubscribe from gradle-user, click here.
NAML




Reply | Threaded
Open this post in threaded view
|

RE: Generating multi-module IDEA project from multi-project Gradle build

evgenyg
Riiiight.
allprojects {

    apply plugin: 'idea'
    ...
}
seems to do the job. Cool, thanks :)
Best regards,
Evgeny
evgeny-goldin.com