spring-security/build.gradle

85 lines
2.6 KiB
Groovy
Raw Permalink Normal View History

2013-09-11 15:42:53 -07:00
buildscript {
repositories {
maven { url "http://repo.springsource.org/plugins-release" }
}
dependencies {
classpath('me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1')
}
}
2010-03-28 23:54:41 +01:00
apply plugin: 'base'
2012-10-01 14:46:37 -05:00
description = 'Spring Security'
allprojects {
2012-10-01 14:46:37 -05:00
ext.releaseBuild = version.endsWith('RELEASE')
ext.snapshotBuild = version.endsWith('SNAPSHOT')
group = 'org.springframework.security'
repositories {
mavenCentral()
}
}
2012-10-01 14:46:37 -05:00
// 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')]
2010-03-05 23:20:15 +00:00
configure(javaProjects) {
2010-03-28 23:54:41 +01:00
apply from: "$rootDir/gradle/javaprojects.gradle"
}
2010-03-05 23:20:15 +00:00
configure(coreModuleProjects) {
// Gives better names in structure101 jar diagram
2012-10-01 14:46:37 -05:00
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'
}
2012-10-01 14:46:37 -05:00
task coreBuild {
dependsOn coreModuleProjects*.tasks*.matching { task -> task.name == 'build' }
2010-05-05 00:16:08 +01:00
}
2012-10-01 14:46:37 -05:00
configure (aspectjProjects) {
apply plugin: 'aspectj'
2010-01-23 02:07:10 +00:00
}
2012-10-01 14:46:37 -05:00
// Task for creating the distro zip
2010-03-05 23:20:15 +00:00
task dist(type: Zip) {
2012-10-01 14:46:37 -05:00
dependsOn subprojects*.tasks*.matching { task -> task.name == 'assemble' || task.name.endsWith('Zip') }
classifier = 'dist'
evaluationDependsOn(':docs')
def zipRootDir = "${project.name}-$version"
2010-03-05 23:20:15 +00:00
into(zipRootDir) {
2012-10-01 14:46:37 -05:00
from(rootDir) {
include '*.txt'
}
2012-10-01 14:46:37 -05:00
into('docs') {
with(project(':docs').apiSpec)
with(project(':docs:manual').spec)
}
into('dist') {
2010-03-05 23:20:15 +00:00
from coreModuleProjects.collect {project -> project.libsDir }
from project(':spring-security-samples-tutorial').libsDir
from project(':spring-security-samples-contacts').libsDir
}
}
}
2012-10-01 14:46:37 -05:00
artifacts {
archives dist
archives project(':docs').docsZip
archives project(':docs').schemaZip
}
2012-10-01 14:46:37 -05:00
apply from: "$rootDir/gradle/ide-integration.gradle"
2010-05-05 00:16:08 +01:00
2012-10-01 14:46:37 -05:00
task wrapper(type: Wrapper) {
gradleVersion = '1.9'
}