INT-3155: Add Gradle Task 'testAll'
* Add to `LongRunningIntegrationTest` ability to read `System.properties` Note, ENV property 'RUN_LONG_INTEGRATION_TESTS' has a preference in case of value `true` * Add Gradle task `testAll` * Upgrade to Gradle 1.7 * Improve build performance by adding 'inputs'/'outputs' to some tasks JIRA: https://jira.springsource.org/browse/INT-3155 Polishing Remove inputs/outputs. Polish RouterConcurrencyTest.
This commit is contained in:
committed by
Gary Russell
parent
7101120589
commit
dd5c9cc18c
35
build.gradle
35
build.gradle
@@ -116,6 +116,13 @@ subprojects { subproject ->
|
||||
jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.integration.*"
|
||||
}
|
||||
|
||||
task testAll() {
|
||||
doFirst {
|
||||
tasks.test.systemProperty 'RUN_LONG_INTEGRATION_TESTS', 'true'
|
||||
}
|
||||
finalizedBy test
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
classifier = 'sources'
|
||||
from sourceSets.main.allJava
|
||||
@@ -126,21 +133,23 @@ subprojects { subproject ->
|
||||
from javadoc
|
||||
}
|
||||
|
||||
task checkTestConfigs << {
|
||||
def configFiles = []
|
||||
sourceSets.test.java.srcDirs.each {
|
||||
fileTree(it).include('**/*.xml').exclude('**/log4j.xml').each { configFile ->
|
||||
def configXml = new XmlParser(false, false).parse(configFile)
|
||||
task checkTestConfigs {
|
||||
doLast {
|
||||
def configFiles = []
|
||||
sourceSets.test.java.srcDirs.each {
|
||||
fileTree(it).include('**/*.xml').exclude('**/log4j.xml').each { configFile ->
|
||||
def configXml = new XmlParser(false, false).parse(configFile)
|
||||
|
||||
if (configXml.@'xsi:schemaLocation' ==~ /.*spring-[a-z-]*\d\.\d\.xsd.*/) {
|
||||
configFiles << configFile
|
||||
if (configXml.@'xsi:schemaLocation' ==~ /.*spring-[a-z-]*\d\.\d\.xsd.*/) {
|
||||
configFiles << configFile
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (configFiles) {
|
||||
throw new InvalidUserDataException('Hardcoded XSD version in the config files:\n' +
|
||||
configFiles.collect {relativePath(it)}.join('\n') +
|
||||
'\nPlease, use versionless schemaLocations for Spring XSDs to avoid issues with builds on different versions of dependencies.')
|
||||
if (configFiles) {
|
||||
throw new InvalidUserDataException('Hardcoded XSD version in the config files:\n' +
|
||||
configFiles.collect {relativePath(it)}.join('\n') +
|
||||
'\nPlease, use versionless schemaLocations for Spring XSDs to avoid issues with builds on different versions of dependencies.')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -758,5 +767,5 @@ task dist(dependsOn: assemble) {
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
description = 'Generates gradlew[.bat] scripts'
|
||||
gradleVersion = '1.6'
|
||||
gradleVersion = '1.7'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user