Add springSnapshotTest

Fixes gh-419
This commit is contained in:
Rob Winch
2016-09-30 09:52:37 -05:00
parent c3326cf658
commit ae02648ae2
3 changed files with 26 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ ext.MAVEN_DEPLOYMENT_SCRIPT = "${GRADLE_SCRIPT_DIR}/maven-deployment.gradle"
ext.JAVA_SCRIPT = "${GRADLE_SCRIPT_DIR}/java.gradle"
ext.RELEASE_CHECKS_SCRIPT = "${GRADLE_SCRIPT_DIR}/release-checks.gradle"
ext.SAMPLE_WAR_GRADLE = "${GRADLE_SCRIPT_DIR}/sample-war.gradle"
ext.SPRING_SNAPSHOT_TEST_SCRIPT = "${GRADLE_SCRIPT_DIR}/spring-snapshot-test.gradle"
ext.coreModules = subprojects.findAll { p-> (!p.name.contains("test") && !p.name.contains("sample") && !p.name.contains("sandbox")) || p.name == "spring-ldap-test" }

View File

@@ -1,6 +1,7 @@
apply from: JAVA_SCRIPT
apply from: MAVEN_DEPLOYMENT_SCRIPT
apply from: RELEASE_CHECKS_SCRIPT
apply from: SPRING_SNAPSHOT_TEST_SCRIPT
apply plugin: 'spring-io'
ext.springIoVersion = project.hasProperty('platformVersion') ? platformVersion : 'Athens-BUILD-SNAPSHOT'

View File

@@ -0,0 +1,24 @@
configurations {
springSnapshotTestRuntime.extendsFrom testRuntime
}
configurations.springSnapshotTestRuntime {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.springframework') {
details.useVersion project.hasProperty('springSnapshotVersion') ? springSnapshotVersion : 'latest.integration'
}
}
}
task springSnapshotTest(type: Test) {
jvmArgs = ['-ea', '-Xmx500m', '-XX:MaxPermSize=128M']
classpath = sourceSets.test.output + sourceSets.main.output + configurations.springSnapshotTestRuntime
reports {
html.destination = project.file("$buildDir/spring-snapshot-test-results/")
junitXml.destination = project.file("$buildDir/reports/spring-snapshot-tests/")
}
doFirst {
project.springSnapshotTest.excludes = project.test.excludes
}
}