File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed
Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -211,24 +211,22 @@ tasks.named('distZip') {
211211
212212tasks. register(' generateSourceMirror' , Copy ) {
213213 dependsOn ' compileJava'
214- doLast {
215- from {
216- dependencies. createArtifactResolutionQuery()
217- .forComponents(
218- configurations. runtimeClasspath. incoming. resolutionResult
219- .allDependencies. collect { it. selected. id }
220- )
221- .withArtifacts(JvmLibrary , SourcesArtifact )
222- .execute()
223- .resolvedComponents
224- .collectMany {
225- it. artifactResults
226- .collect { it. file. path }
227- }
228- }
229- into layout. buildDirectory. dir(' mirror/sources' )
230- outputs. dir " mirror/sources"
214+ from {
215+ dependencies. createArtifactResolutionQuery()
216+ .forComponents(
217+ configurations. runtimeClasspath. incoming. resolutionResult
218+ .allDependencies. collect { it. selected. id }
219+ )
220+ .withArtifacts(JvmLibrary , SourcesArtifact )
221+ .execute()
222+ .resolvedComponents
223+ .collectMany {
224+ it. artifactResults
225+ .collect { it. file. path }
226+ }
231227 }
228+ into layout. buildDirectory. dir(' mirror/sources' )
229+ outputs. dir " mirror/sources"
232230}
233231
234232tasks. register(' copyGceLauncher' , Copy ) {
You can’t perform that action at this time.
0 commit comments