I have a gradle project with four subprojects and I use the idea plugin to create the idea project and modules. One of the subprojects is the android module.
Here is the build.gradle code:
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.6' } } apply plugin: 'android' android { buildToolsVersion "18.1.1" compileSdkVersion 16 sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aild.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } instrumentTest.setRoot('tests') } } repositories { mavenCentral() } dependencies { compile( ['org.atmosphere:wasync:1.1.0'], ['org.codehaus.jackson:jackson-mapper-lgpl:1.9.13'], ['org.projectlombok:lombok:0.+'], ['org.apache.httpcomponents:httpmime:4.3.1'], ['commons-io:commons-io:2.+'], ['com.google.guava:guava:14.+'] ) compile fileTree(dir: 'libs', include: '*.jar') }
The problem is this: when using "gradle idea" to generate intelligent modules of the idea, as a result of the android module there are no dependencies, and I can not understand why. Is there something wrong with my configuration?
Other subprojects (using the java plugin) have no problems imported into idea modules without problems.
I am using gradle 1.7.
source share