mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-10 04:13:31 +00:00
SEC-3029: Add springSnapshotTests
Test against Spring Framework's latest Snapshots
This commit is contained in:
parent
7b4a37f27e
commit
848523e47a
@ -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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user