12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- apply plugin: 'base'
- description = 'Spring Security'
- allprojects {
- version = '3.1.0.CI-SNAPSHOT'
- releaseBuild = version.endsWith('RELEASE')
- snapshotBuild = version.endsWith('SNAPSHOT')
- group = 'org.springframework.security'
- repositories {
- mavenLocal()
- mavenCentral()
- }
- }
- // Set up different subproject lists for individual configuration
- 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))
- apply plugin: 'bundlor'
- bundlor.expansions = bundlorProperties
- apply from: "$rootDir/gradle/maven-deployment.gradle"
- apply plugin: 'emma'
- }
- task coreBuild {
- dependsOn coreModuleProjects*.tasks*.matching { task -> task.name == 'build' }
- }
- configure (aspectjProjects) {
- apply plugin: 'aspectj'
- }
- // Task for creating the distro zip
- task dist(type: Zip) {
- dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' }
- evaluationDependsOn(':docs')
- def zipRootDir = "${project.name}-$version"
- into(zipRootDir) {
- from(rootDir) {
- include '*.txt'
- }
- into('docs') {
- with(project(':docs').apiSpec)
- with(project(':docs:manual').spec)
- }
- into('dist') {
- from coreModuleProjects.collect {project -> project.libsDir }
- from project(':spring-security-samples-tutorial').libsDir
- from project(':spring-security-samples-contacts').libsDir
- }
- }
- }
- task uploadDist(type: S3DistroUpload) {
- archiveFile = dist.archivePath
- projectKey = 'SEC'
- }
- apply from: "$rootDir/gradle/ide-integration.gradle"
- task wrapper(type: Wrapper) {
- gradleVersion = '1.0-milestone-3'
- }
|