1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- buildscript {
- repositories {
- maven { url "http://repo.springsource.org/plugins-release" }
- }
- dependencies {
- classpath('me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1')
- }
- }
- apply plugin: 'base'
- description = 'Spring Security'
- allprojects {
- ext.releaseBuild = version.endsWith('RELEASE')
- ext.snapshotBuild = version.endsWith('SNAPSHOT')
- group = 'org.springframework.security'
- repositories {
- mavenCentral()
- }
- }
- // Set up different subproject lists for individual configuration
- 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')]
- configure(subprojects - coreModuleProjects) {
- tasks.findByPath("artifactoryPublish")?.enabled = false
- }
- configure(javaProjects) {
- apply from: "$rootDir/gradle/javaprojects.gradle"
- }
- configure(coreModuleProjects) {
- // Gives better names in structure101 jar diagram
- sourceSets.main.output.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' || task.name.endsWith('Zip') }
- classifier = 'dist'
- 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
- }
- }
- }
- artifacts {
- archives dist
- archives project(':docs').docsZip
- archives project(':docs').schemaZip
- }
- apply from: "$rootDir/gradle/ide-integration.gradle"
- task wrapper(type: Wrapper) {
- gradleVersion = '1.9'
- }
|