diff --git a/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/groovy/build.gradle b/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/groovy/build.gradle index aebbbc98cefe8..c90d6eecd2d6f 100644 --- a/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/groovy/build.gradle +++ b/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/groovy/build.gradle @@ -30,6 +30,9 @@ tasks.register("resolveConfiguration", ResolveFiles) { files.from(configurations.runtimeClasspath) } tasks.register("resolveIncomingFiles", ResolveFiles) { +// end::implicit-file-resolution[] + dependsOn(tasks.named("resolveConfiguration")) // To preserve output ordering +// tag::implicit-file-resolution[] files.from(configurations.runtimeClasspath.incoming.files) } // end::implicit-file-resolution[] diff --git a/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/kotlin/build.gradle.kts b/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/kotlin/build.gradle.kts index 378403a056c09..bdb4da9b511b6 100644 --- a/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/kotlin/build.gradle.kts +++ b/platforms/documentation/docs/src/snippets/dependencyManagement/performingResolution-artifactResolution/kotlin/build.gradle.kts @@ -30,6 +30,9 @@ tasks.register("resolveConfiguration") { files.from(configurations.runtimeClasspath) } tasks.register("resolveIncomingFiles") { +// end::implicit-file-resolution[] + dependsOn(tasks.named("resolveConfiguration")) // To preserve output ordering +// tag::implicit-file-resolution[] files.from(configurations.runtimeClasspath.map { it.incoming.files }) } // end::implicit-file-resolution[]