2010-03-28 23:54:41 +01:00
|
|
|
apply plugin: 'base'
|
2010-01-20 04:14:48 +00:00
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
description = 'Spring Security'
|
|
|
|
|
2009-12-04 21:33:17 +00:00
|
|
|
allprojects {
|
2011-12-05 23:44:55 +00:00
|
|
|
version = '3.1.1.CI-SNAPSHOT'
|
2010-01-18 02:02:28 +00:00
|
|
|
releaseBuild = version.endsWith('RELEASE')
|
2010-01-21 05:28:17 +00:00
|
|
|
snapshotBuild = version.endsWith('SNAPSHOT')
|
|
|
|
|
2010-01-13 00:44:05 +00:00
|
|
|
group = 'org.springframework.security'
|
|
|
|
|
2009-12-04 21:33:17 +00:00
|
|
|
repositories {
|
2011-01-10 17:27:22 +00:00
|
|
|
mavenLocal()
|
2009-12-04 21:33:17 +00:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-04 21:35:57 +01:00
|
|
|
// Set up different subproject lists for individual configuration
|
2010-08-04 02:04:40 +01: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) {
|
|
|
|
// Gives better names in structure101 jar diagram
|
|
|
|
sourceSets.main.classesDir = new File(buildDir, "classes/" + project.name.substring("spring-security".length() + 1))
|
2011-02-16 15:57:22 +00:00
|
|
|
apply plugin: 'bundlor'
|
|
|
|
bundlor.expansions = bundlorProperties
|
|
|
|
apply from: "$rootDir/gradle/maven-deployment.gradle"
|
|
|
|
apply plugin: 'emma'
|
2010-08-04 02:04:40 +01:00
|
|
|
}
|
|
|
|
|
2010-08-24 18:27:44 +01:00
|
|
|
task coreBuild {
|
|
|
|
dependsOn coreModuleProjects*.tasks*.matching { task -> task.name == 'build' }
|
|
|
|
}
|
|
|
|
|
2010-08-04 02:04:40 +01:00
|
|
|
configure (aspectjProjects) {
|
2011-02-16 15:57:22 +00:00
|
|
|
apply plugin: 'aspectj'
|
2010-08-04 02:04:40 +01:00
|
|
|
}
|
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
// Task for creating the distro zip
|
2010-08-04 02:04:40 +01:00
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
task dist(type: Zip) {
|
|
|
|
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' }
|
2010-08-24 22:36:42 +01:00
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
evaluationDependsOn(':docs')
|
|
|
|
|
|
|
|
def zipRootDir = "${project.name}-$version"
|
|
|
|
into(zipRootDir) {
|
|
|
|
from(rootDir) {
|
|
|
|
include '*.txt'
|
2011-03-07 21:11:23 -06:00
|
|
|
}
|
2011-04-21 11:57:18 +01:00
|
|
|
into('docs') {
|
|
|
|
with(project(':docs').apiSpec)
|
|
|
|
with(project(':docs:manual').spec)
|
2011-03-06 12:49:47 -06:00
|
|
|
}
|
2011-04-21 11:57:18 +01:00
|
|
|
into('dist') {
|
|
|
|
from coreModuleProjects.collect {project -> project.libsDir }
|
|
|
|
from project(':spring-security-samples-tutorial').libsDir
|
|
|
|
from project(':spring-security-samples-contacts').libsDir
|
2011-03-06 18:34:40 -06:00
|
|
|
}
|
|
|
|
}
|
2010-07-07 22:40:17 +01:00
|
|
|
}
|
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
task uploadDist(type: S3DistroUpload) {
|
|
|
|
archiveFile = dist.archivePath
|
|
|
|
projectKey = 'SEC'
|
2010-07-07 22:40:17 +01:00
|
|
|
}
|
|
|
|
|
2011-04-21 11:57:18 +01:00
|
|
|
apply from: "$rootDir/gradle/ide-integration.gradle"
|
2010-08-04 21:35:57 +01:00
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
2011-04-27 16:21:46 +01:00
|
|
|
gradleVersion = '1.0-milestone-3'
|
2010-08-04 21:35:57 +01:00
|
|
|
}
|