spring-security/build.gradle

81 lines
2.8 KiB
Groovy
Raw Normal View History

2010-03-28 18:54:41 -04:00
apply plugin: 'base'
allprojects {
version = '3.1.0.CI-SNAPSHOT'
releaseBuild = version.endsWith('RELEASE')
snapshotBuild = version.endsWith('SNAPSHOT')
group = 'org.springframework.security'
repositories {
mavenRepo name:'Local', urls: "file://" + System.properties['user.home'] + "/.m2/repository"
mavenCentral()
mavenRepo name: 'SpringSource Milestone Repo', urls: 'http://repository.springsource.com/maven/bundles/milestone'
mavenRepo name: 'SpringSource Maven Snapshot Repo', urls: 'http://maven.springframework.org/snapshot/'
mavenRepo name: 'SpringSource Enterprise Release', urls: 'http://repository.springsource.com/maven/bundles/release'
mavenRepo name: 'SpringSource Enterprise External', urls: 'http://repository.springsource.com/maven/bundles/external'
// mavenRepo(name: 'Spock Snapshots', urls: 'http://m2repo.spockframework.org/snapshots')
}
}
2010-08-04 16:35:57 -04:00
// Set up different subproject lists for individual configuration
2010-08-03 21:04:40 -04:00
javaProjects = subprojects.findAll { project -> project.name != 'docs' && project.name != 'faq' && project.name != 'manual' }
sampleProjects = subprojects.findAll { project -> project.name.startsWith('spring-security-samples') }
itestProjects = subprojects.findAll { project -> project.name.startsWith('itest') }
coreModuleProjects = javaProjects - sampleProjects - itestProjects
aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')]
releaseProjects = coreModuleProjects + project(':spring-security-aspects')
configure(javaProjects) {
apply from: "$rootDir/gradle/javaprojects.gradle"
}
configure(coreModuleProjects) {
apply from: "$rootDir/gradle/bundlor.gradle"
apply from: "$rootDir/gradle/maven-deployment.gradle"
2010-08-03 21:04:40 -04:00
// Gives better names in structure101 jar diagram
sourceSets.main.classesDir = new File(buildDir, "classes/" + project.name.substring("spring-security".length() + 1))
}
configure (aspectjProjects) {
apply from: "$rootDir/gradle/aspectj.gradle"
}
apply from: "$rootDir/gradle/dist.gradle"
apply plugin: 'idea'
configure(javaProjects) {
apply plugin: 'idea'
2010-07-07 17:40:17 -04:00
ideaModule {
downloadJavadoc=false
excludeDirs.add(buildDir)
}
def config = configurations.findByName('testRuntime')
if (!config) {
return
}
2010-07-06 18:52:11 -04:00
ideaModule {
gradleCacheVariable = 'GRADLE_CACHE'
}
2010-07-07 17:40:17 -04:00
}
ideaModule {
excludeDirs.add(file('.gradle'))
excludeDirs.add(file('buildSrc/build'))
excludeDirs.add(file('buildSrc/.gradle'))
}
ideaProject {
wildcards += ['?*.gradle']
javaVersion = '1.6'
withXml { node ->
node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
}
}
2010-08-04 16:35:57 -04:00
task wrapper(type: Wrapper) {
gradleVersion = '0.9-rc-1'
jarPath = 'gradle/wrapper'
}