File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -63,3 +63,24 @@ tasks.test {
6363 maxParallelForks = 4
6464 inputs.dir(layout.projectDirectory.dir(" samples" ))
6565}
66+
67+ testing.suites.named<JvmTestSuite >(" test" ) {
68+ useJUnitJupiter()
69+ listOf (" 7.4" , " 7.6.4" , " 8.0.2" ).forEach { gradleVersionUnderTest ->
70+ targets.register(" test${gradleVersionUnderTest} " ) {
71+ testTask {
72+ group = LifecycleBasePlugin .VERIFICATION_GROUP
73+ description = " Runs tests against Gradle $gradleVersionUnderTest "
74+ systemProperty(" gradleVersionUnderTest" , gradleVersionUnderTest)
75+ exclude(" **/*SamplesTest.class" ) // Not yet cross-version ready
76+ }
77+ }
78+ }
79+ targets.all {
80+ testTask {
81+ maxParallelForks = 4
82+ inputs.dir(layout.projectDirectory.dir(" samples" ))
83+ inputs.dir(" samples" )
84+ }
85+ }
86+ }
You can’t perform that action at this time.
0 commit comments