@@ -53,18 +53,16 @@ val supportedTestNGVersions = listOf(
53
53
" 7.6.1" to 11 ,
54
54
" 7.7.1" to 11 ,
55
55
" 7.8.0" to 11 ,
56
- " 7.9.0" to 11 // Keep in sync with TestContext.java and README.MD
56
+ " 7.9.0" to 11 ,
57
+ " 7.10.1" to 11 , // Keep in sync with TestContext.java and README.adoc
57
58
).associateBy({ Version (it.first) }, { JavaLanguageVersion .of(it.second) })
58
59
59
60
val lastJdk8CompatibleRelease = supportedTestNGVersions.entries.last { it.value == JavaLanguageVersion .of(8 ) }.key
60
61
61
- val snapshotTestNGVersion = Version (" 7.10 .0-SNAPSHOT" )
62
+ val snapshotTestNGVersion = Version (" 7.11 .0-SNAPSHOT" )
62
63
63
64
val allTestNGVersions = supportedTestNGVersions.keys + listOf (snapshotTestNGVersion)
64
65
65
- fun versionSuffix (version : String ) =
66
- if (version.endsWith(" -SNAPSHOT" )) " snapshot" else version.replace(' .' , ' _' )
67
-
68
66
val testRuntimeClasspath: Configuration by configurations.getting
69
67
val testNGTestConfigurationsByVersion = allTestNGVersions.associateWith { version ->
70
68
configurations.create(" testRuntimeClasspath_${version.suffix} " ) {
@@ -211,6 +209,7 @@ tasks {
211
209
}
212
210
systemProperty(" testng.version" , version.value)
213
211
systemProperty(" java.util.logging.manager" , " org.apache.logging.log4j.jul.LogManager" )
212
+ ignoreFailures = version.isSnapshot() // TODO remove this line once a new 7.11.0-SNAPSHOT artifact is available
214
213
}
215
214
}
216
215
test {
@@ -301,5 +300,7 @@ data class Version(val value: String) {
301
300
value.replace(pattern, " _" )
302
301
}
303
302
303
+ fun isSnapshot () : Boolean = value.endsWith(" -SNAPSHOT" )
304
+
304
305
override fun toString () = value
305
306
}
0 commit comments