2010-03-28 18:54:41 -04:00
|
|
|
apply plugin: 'base'
|
2010-01-19 23:14:48 -05:00
|
|
|
|
2009-12-04 16:33:17 -05:00
|
|
|
allprojects {
|
2010-08-22 19:13:20 -04:00
|
|
|
version = '3.1.0.CI-SNAPSHOT'
|
2010-01-17 21:02:28 -05:00
|
|
|
releaseBuild = version.endsWith('RELEASE')
|
2010-01-21 00:28:17 -05:00
|
|
|
snapshotBuild = version.endsWith('SNAPSHOT')
|
|
|
|
|
2010-01-12 19:44:05 -05:00
|
|
|
group = 'org.springframework.security'
|
|
|
|
|
2009-12-04 16:33:17 -05:00
|
|
|
repositories {
|
2010-03-03 10:40:57 -05:00
|
|
|
mavenRepo name:'Local', urls: "file://" + System.properties['user.home'] + "/.m2/repository"
|
2009-12-04 16:33:17 -05:00
|
|
|
mavenCentral()
|
2010-03-03 10:40:57 -05:00
|
|
|
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'
|
2010-08-17 21:32:43 -04:00
|
|
|
// mavenRepo(name: 'Spock Snapshots', urls: 'http://m2repo.spockframework.org/snapshots')
|
2009-12-04 16:33:17 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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')]
|
|
|
|
|
|
|
|
configure(javaProjects) {
|
|
|
|
apply from: "$rootDir/gradle/javaprojects.gradle"
|
|
|
|
}
|
|
|
|
|
|
|
|
configure(coreModuleProjects) {
|
|
|
|
apply from: "$rootDir/gradle/bundlor.gradle"
|
2010-08-17 21:32:43 -04:00
|
|
|
apply from: "$rootDir/gradle/maven-deployment.gradle"
|
2010-08-21 10:58:59 -04:00
|
|
|
apply from: "$rootDir/gradle/emma.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))
|
|
|
|
}
|
|
|
|
|
2010-08-24 13:27:44 -04:00
|
|
|
task coreBuild {
|
|
|
|
dependsOn coreModuleProjects*.tasks*.matching { task -> task.name == 'build' }
|
|
|
|
}
|
|
|
|
|
2010-08-03 21:04:40 -04:00
|
|
|
configure (aspectjProjects) {
|
|
|
|
apply from: "$rootDir/gradle/aspectj.gradle"
|
|
|
|
}
|
|
|
|
|
|
|
|
apply from: "$rootDir/gradle/dist.gradle"
|
|
|
|
|
2010-08-22 17:29:11 -04:00
|
|
|
configure(javaProjects) {
|
2010-08-02 22:01:53 -04:00
|
|
|
apply plugin: 'idea'
|
2010-08-18 09:11:06 -04:00
|
|
|
apply plugin: 'eclipse'
|
2010-08-21 09:15:54 -04:00
|
|
|
|
2010-07-06 18:52:11 -04:00
|
|
|
ideaModule {
|
2010-08-21 09:15:54 -04:00
|
|
|
downloadJavadoc=false
|
|
|
|
excludeDirs.add(buildDir)
|
2010-07-06 18:52:11 -04:00
|
|
|
gradleCacheVariable = 'GRADLE_CACHE'
|
2010-08-21 09:15:54 -04:00
|
|
|
outputDir = "$rootProject.projectDir/intellij/out" as File
|
|
|
|
testOutputDir = "$rootProject.projectDir/intellij/testOut" as File
|
2010-07-06 18:52:11 -04:00
|
|
|
}
|
2010-07-07 17:40:17 -04:00
|
|
|
}
|
|
|
|
|
2010-08-22 17:29:11 -04:00
|
|
|
apply plugin: 'idea'
|
|
|
|
|
2010-07-07 17:40:17 -04:00
|
|
|
ideaModule {
|
2010-08-21 09:15:54 -04:00
|
|
|
excludeDirs += file('.gradle')
|
|
|
|
excludeDirs += file('buildSrc/build')
|
|
|
|
excludeDirs += file('buildSrc/.gradle')
|
2010-07-07 17:40:17 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
ideaProject {
|
|
|
|
javaVersion = '1.6'
|
2010-08-22 17:29:11 -04:00
|
|
|
subprojects = javaProjects
|
2010-08-02 22:01:53 -04:00
|
|
|
withXml { node ->
|
2010-08-21 09:15:54 -04:00
|
|
|
// Use git
|
|
|
|
def vcsConfig = node.component.find { it.'@name' == 'VcsDirectoryMappings' }
|
|
|
|
vcsConfig.mapping[0].'@vcs' = 'Git'
|
2010-08-02 22:01:53 -04:00
|
|
|
}
|
|
|
|
}
|
2010-08-04 16:35:57 -04:00
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
gradleVersion = '0.9-rc-1'
|
|
|
|
jarPath = 'gradle/wrapper'
|
|
|
|
}
|