Apply idea and eclipse plugins to java projects only.

This commit is contained in:
Luke Taylor 2010-08-22 22:29:11 +01:00
parent 5fe589e360
commit b9dfc69d62
1 changed files with 4 additions and 6 deletions

View File

@ -24,7 +24,6 @@ sampleProjects = subprojects.findAll { project -> project.name.startsWith('sprin
itestProjects = subprojects.findAll { project -> project.name.startsWith('itest') } itestProjects = subprojects.findAll { project -> project.name.startsWith('itest') }
coreModuleProjects = javaProjects - sampleProjects - itestProjects coreModuleProjects = javaProjects - sampleProjects - itestProjects
aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')] aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')]
releaseProjects = coreModuleProjects + project(':spring-security-aspects')
configure(javaProjects) { configure(javaProjects) {
apply from: "$rootDir/gradle/javaprojects.gradle" apply from: "$rootDir/gradle/javaprojects.gradle"
@ -44,13 +43,9 @@ configure (aspectjProjects) {
apply from: "$rootDir/gradle/dist.gradle" apply from: "$rootDir/gradle/dist.gradle"
allprojects { configure(javaProjects) {
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'eclipse' apply plugin: 'eclipse'
def config = configurations.findByName('testRuntime')
if (!config) {
return
}
ideaModule { ideaModule {
downloadJavadoc=false downloadJavadoc=false
@ -61,6 +56,8 @@ allprojects {
} }
} }
apply plugin: 'idea'
ideaModule { ideaModule {
excludeDirs += file('.gradle') excludeDirs += file('.gradle')
excludeDirs += file('buildSrc/build') excludeDirs += file('buildSrc/build')
@ -69,6 +66,7 @@ ideaModule {
ideaProject { ideaProject {
javaVersion = '1.6' javaVersion = '1.6'
subprojects = javaProjects
withXml { node -> withXml { node ->
// Use git // Use git
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' } def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }