@@ -25,7 +25,7 @@ buildscript {
2525 classpath gradlePlugins. values()
2626 classpath platforms. collect { platform(it) }
2727
28- configurations. all { configuration ->
28+ configurations. configureEach { configuration ->
2929 restrictions. each { module , version ->
3030 constraints. add(configuration. name, module). version { require version }
3131 }
@@ -50,7 +50,7 @@ allprojects {
5050 ' api' , ' apiElements' , ' archives' , ' compileClasspath' , ' compileOnlyApi' , ' default' ,
5151 ' implementation' , ' javadocElements' , ' runtimeClasspath' , ' runtimeElements' , ' runtimeOnly' ,
5252 ' sourcesElements' , ' testCompileClasspath' , ' testRuntimeClasspath' ]
53- configurations. all { configuration ->
53+ configurations. configureEach { configuration ->
5454 if (name ! in ignored) {
5555 restrictions. each { module , version ->
5656 constraints. add(configuration. name, module). version { require version }
@@ -71,7 +71,7 @@ subprojects {
7171 apply from : " ${ rootDir} /gradle/dependencies.gradle"
7272 apply from : " ${ rootDir} /gradle/objectLayout.gradle"
7373
74- configurations. all {
74+ configurations. configureEach {
7575 resolutionStrategy. dependencySubstitution {
7676 substitute module(' org.hamcrest:hamcrest-core' ) using module(testLibraries. hamcrest)
7777 }
@@ -158,9 +158,9 @@ snyk {
158158}
159159tasks. named(' snyk-test' ). configure {
160160 notCompatibleWithConfigurationCache(
161- ' The snyk-test task is not compatible with the configuration cache' )
161+ " The ${ name } task is not compatible with the configuration cache" )
162162}
163163tasks. named(' snyk-monitor' ). configure {
164164 notCompatibleWithConfigurationCache(
165- ' The snyk-monitor task is not compatible with the configuration cache' )
165+ " The ${ name } task is not compatible with the configuration cache" )
166166}
0 commit comments