Skip to content

Commit c786c97

Browse files
add source code to distribution (#862)
1 parent 1882677 commit c786c97

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

dumper/app/build.gradle

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,24 +211,22 @@ tasks.named('distZip') {
211211

212212
tasks.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

234232
tasks.register('copyGceLauncher', Copy) {

0 commit comments

Comments
 (0)