2010-03-29 06:54:41 +08:00
|
|
|
apply plugin: 'base'
|
2010-01-20 12:14:48 +08:00
|
|
|
|
2011-04-21 18:57:18 +08:00
|
|
|
description = 'Spring Security'
|
|
|
|
|
2009-12-05 05:33:17 +08:00
|
|
|
allprojects {
|
2012-06-30 01:59:22 +08:00
|
|
|
ext.releaseBuild = version.endsWith('RELEASE')
|
|
|
|
ext.snapshotBuild = version.endsWith('SNAPSHOT')
|
2010-01-21 13:28:17 +08:00
|
|
|
|
2010-01-13 08:44:05 +08:00
|
|
|
group = 'org.springframework.security'
|
|
|
|
|
2009-12-05 05:33:17 +08:00
|
|
|
repositories {
|
2012-11-06 02:05:41 +08:00
|
|
|
maven { url "http://repo.springsource.org/libs-snapshot" }
|
2009-12-05 05:33:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-05 04:35:57 +08:00
|
|
|
// Set up different subproject lists for individual configuration
|
2012-06-30 01:59:22 +08:00
|
|
|
ext.javaProjects = subprojects.findAll { project -> project.name != 'docs' && project.name != 'faq' && project.name != 'manual' }
|
|
|
|
ext.sampleProjects = subprojects.findAll { project -> project.name.startsWith('spring-security-samples') }
|
|
|
|
ext.itestProjects = subprojects.findAll { project -> project.name.startsWith('itest') }
|
|
|
|
ext.coreModuleProjects = javaProjects - sampleProjects - itestProjects
|
|
|
|
ext.aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')]
|
2010-08-04 09:04:40 +08:00
|
|
|
|
2012-12-13 08:04:10 +08:00
|
|
|
configure(subprojects - coreModuleProjects) {
|
|
|
|
tasks.findByPath("artifactoryPublish")?.enabled = false
|
|
|
|
}
|
|
|
|
|
2010-08-04 09:04:40 +08:00
|
|
|
configure(javaProjects) {
|
|
|
|
apply from: "$rootDir/gradle/javaprojects.gradle"
|
|
|
|
}
|
|
|
|
|
|
|
|
configure(coreModuleProjects) {
|
|
|
|
// Gives better names in structure101 jar diagram
|
2012-06-30 01:59:22 +08:00
|
|
|
sourceSets.main.output.classesDir = new File(buildDir, "classes/" + project.name.substring("spring-security".length() + 1))
|
2011-02-16 23:57:22 +08:00
|
|
|
apply plugin: 'bundlor'
|
|
|
|
bundlor.expansions = bundlorProperties
|
|
|
|
apply from: "$rootDir/gradle/maven-deployment.gradle"
|
|
|
|
apply plugin: 'emma'
|
2010-08-04 09:04:40 +08:00
|
|
|
}
|
|
|
|
|
2010-08-25 01:27:44 +08:00
|
|
|
task coreBuild {
|
|
|
|
dependsOn coreModuleProjects*.tasks*.matching { task -> task.name == 'build' }
|
|
|
|
}
|
|
|
|
|
2010-08-04 09:04:40 +08:00
|
|
|
configure (aspectjProjects) {
|
2011-02-16 23:57:22 +08:00
|
|
|
apply plugin: 'aspectj'
|
2010-08-04 09:04:40 +08:00
|
|
|
}
|
|
|
|
|
2011-04-21 18:57:18 +08:00
|
|
|
// Task for creating the distro zip
|
2010-08-04 09:04:40 +08:00
|
|
|
|
2011-04-21 18:57:18 +08:00
|
|
|
task dist(type: Zip) {
|
2012-08-09 03:16:37 +08:00
|
|
|
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' || task.name.endsWith('Zip') }
|
|
|
|
classifier = 'dist'
|
2010-08-25 05:36:42 +08:00
|
|
|
|
2011-04-21 18:57:18 +08:00
|
|
|
evaluationDependsOn(':docs')
|
|
|
|
|
|
|
|
def zipRootDir = "${project.name}-$version"
|
|
|
|
into(zipRootDir) {
|
|
|
|
from(rootDir) {
|
|
|
|
include '*.txt'
|
2011-03-08 11:11:23 +08:00
|
|
|
}
|
2011-04-21 18:57:18 +08:00
|
|
|
into('docs') {
|
|
|
|
with(project(':docs').apiSpec)
|
|
|
|
with(project(':docs:manual').spec)
|
2011-03-07 02:49:47 +08:00
|
|
|
}
|
2011-04-21 18:57:18 +08: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-07 08:34:40 +08:00
|
|
|
}
|
|
|
|
}
|
2010-07-08 05:40:17 +08:00
|
|
|
}
|
|
|
|
|
2012-08-09 03:16:37 +08:00
|
|
|
artifacts {
|
|
|
|
archives dist
|
|
|
|
archives project(':docs').docsZip
|
|
|
|
archives project(':docs').schemaZip
|
2010-07-08 05:40:17 +08:00
|
|
|
}
|
|
|
|
|
2011-04-21 18:57:18 +08:00
|
|
|
apply from: "$rootDir/gradle/ide-integration.gradle"
|
2010-08-05 04:35:57 +08:00
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
2012-12-01 06:33:44 +08:00
|
|
|
gradleVersion = '1.3'
|
2010-08-05 04:35:57 +08:00
|
|
|
}
|