@@ -142,8 +142,8 @@ project(':embedded-database-spring-test') {
142142 runtime " io.zonky.test.postgres:embedded-postgres-binaries-linux-amd64-alpine:$postgresVersion "
143143
144144 compile project(' :embedded-database-spring-test-autoconfigure' )
145- compile ' org.springframework:spring-context:4.3.10 .RELEASE'
146- compile ' org.springframework:spring-test:4.3.10 .RELEASE'
145+ compile ' org.springframework:spring-context:4.3.18 .RELEASE'
146+ compile ' org.springframework:spring-test:4.3.18 .RELEASE'
147147 compile " org.flywaydb:flyway-core:$flywayCoreVersion "
148148 compile " org.flywaydb.flyway-test-extensions:flyway-spring-test:$flywayTestVersion "
149149 compile ' com.google.guava:guava:23.0'
@@ -194,7 +194,8 @@ project(':embedded-database-spring-test') {
194194
195195 configurations {
196196 flywayCoreVersions. init(). each { version ->
197- " testRuntimeWithFlywayCore$version " {
197+ def versionName = version. replaceAll(' \\ .' , ' _' )
198+ " testRuntimeWithFlywayCore_$versionName " {
198199 extendsFrom testRuntime
199200 resolutionStrategy {
200201 eachDependency { details ->
@@ -207,7 +208,8 @@ project(':embedded-database-spring-test') {
207208 }
208209
209210 flywayTestExtensionsVersions. init(). each { version ->
210- " testRuntimeWithFlywayTestExtensions$version " {
211+ def versionName = version. replaceAll(' \\ .' , ' _' )
212+ " testRuntimeWithFlywayTestExtensions_$versionName " {
211213 extendsFrom testRuntime
212214 resolutionStrategy {
213215 eachDependency { details ->
@@ -220,7 +222,8 @@ project(':embedded-database-spring-test') {
220222 }
221223
222224 embeddedPostgresVersions. init(). each { version ->
223- " testRuntimeWithEmbeddedPostgres$version " {
225+ def versionName = version. replaceAll(' \\ .' , ' _' )
226+ " testRuntimeWithEmbeddedPostgres_$versionName " {
224227 extendsFrom testRuntime
225228 resolutionStrategy {
226229 eachDependency { details ->
@@ -234,26 +237,28 @@ project(':embedded-database-spring-test') {
234237 }
235238
236239 flywayCoreVersions. init(). each { version ->
237- task " testWithFlywayCore$version " (type : Test ) {
240+ def versionName = version. replaceAll(' \\ .' , ' _' )
241+ task " testWithFlywayCore_$versionName " (type : Test ) {
238242 dependsOn jar
239243
240244 classpath - = configurations. testRuntime
241- classpath + = configurations. " testRuntimeWithFlywayCore $v ersion "
245+ classpath + = configurations. " testRuntimeWithFlywayCore_ $v ersionName "
242246
243247 useJUnit {
244248 includeCategories ' io.zonky.test.category.FlywayIntegrationTests'
245249 includeCategories ' io.zonky.test.category.MultiFlywayIntegrationTests'
246250 }
247251 }
248- check. dependsOn(" testWithFlywayCore $v ersion " )
252+ check. dependsOn(" testWithFlywayCore_ $v ersionName " )
249253 }
250254
251255 flywayTestExtensionsVersions. init(). each { version ->
252- task " testWithFlywayTestExtensions$version " (type : Test ) {
256+ def versionName = version. replaceAll(' \\ .' , ' _' )
257+ task " testWithFlywayTestExtensions_$versionName " (type : Test ) {
253258 dependsOn jar
254259
255260 classpath - = configurations. testRuntime
256- classpath + = configurations. " testRuntimeWithFlywayTestExtensions $v ersion "
261+ classpath + = configurations. " testRuntimeWithFlywayTestExtensions_ $v ersionName "
257262
258263 useJUnit {
259264 includeCategories ' io.zonky.test.category.FlywayIntegrationTests'
@@ -263,17 +268,18 @@ project(':embedded-database-spring-test') {
263268 }
264269 }
265270 }
266- check. dependsOn(" testWithFlywayTestExtensions $v ersion " )
271+ check. dependsOn(" testWithFlywayTestExtensions_ $v ersionName " )
267272 }
268273
269274 embeddedPostgresVersions. init(). each { version ->
270- task " testWithEmbeddedPostgres$version " (type : Test ) {
275+ def versionName = version. replaceAll(' \\ .' , ' _' )
276+ task " testWithEmbeddedPostgres_$versionName " (type : Test ) {
271277 dependsOn jar
272278
273279 classpath - = configurations. testRuntime
274- classpath + = configurations. " testRuntimeWithEmbeddedPostgres $v ersion "
280+ classpath + = configurations. " testRuntimeWithEmbeddedPostgres_ $v ersionName "
275281 }
276- check. dependsOn(" testWithEmbeddedPostgres $v ersion " )
282+ check. dependsOn(" testWithEmbeddedPostgres_ $v ersionName " )
277283 }
278284
279285 tasks. withType(Test ) {
0 commit comments