|
@@ -94,6 +94,15 @@ configurations {
|
|
integrationTestRuntime {
|
|
integrationTestRuntime {
|
|
extendsFrom integrationTestCompile, testRuntime
|
|
extendsFrom integrationTestCompile, testRuntime
|
|
}
|
|
}
|
|
|
|
+ springSnapshotTestRuntime.extendsFrom testRuntime
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+configurations.springSnapshotTestRuntime {
|
|
|
|
+ resolutionStrategy.eachDependency { DependencyResolveDetails details ->
|
|
|
|
+ if (details.requested.group == 'org.springframework') {
|
|
|
|
+ details.useVersion 'latest.integration'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
sourceSets {
|
|
sourceSets {
|
|
@@ -126,6 +135,16 @@ project.conf2ScopeMappings.addMapping(MavenPlugin.TEST_COMPILE_PRIORITY + 1, pro
|
|
project.conf2ScopeMappings.addMapping(MavenPlugin.TEST_COMPILE_PRIORITY + 2, project.configurations.getByName("integrationTestRuntime"), Conf2ScopeMappingContainer.TEST)
|
|
project.conf2ScopeMappings.addMapping(MavenPlugin.TEST_COMPILE_PRIORITY + 2, project.configurations.getByName("integrationTestRuntime"), Conf2ScopeMappingContainer.TEST)
|
|
check.dependsOn integrationTest
|
|
check.dependsOn integrationTest
|
|
|
|
|
|
|
|
+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/")
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+check.dependsOn springSnapshotTest
|
|
|
|
+
|
|
dependencies {
|
|
dependencies {
|
|
optional "commons-logging:commons-logging:$commonsLoggingVersion"
|
|
optional "commons-logging:commons-logging:$commonsLoggingVersion"
|
|
|
|
|