Skip to content

Commit 67c58eb

Browse files
authored
[Gradle] More cleanup on rpm and debian packaging (#133336) (#133340)
1 parent 68a8c58 commit 67c58eb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

distribution/packages/build.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,6 @@ tasks.register('buildDeb', Deb) {
355355
configure(commonDebConfig('x64'))
356356
}
357357

358-
tasks.named('assemble'){
359-
dependsOn 'buildDeb', 'buildAarch64Deb'
360-
}
361-
362358
Closure commonRpmConfig(String architecture) {
363359
return {
364360
configure(commonPackageConfig('rpm', architecture))
@@ -392,11 +388,6 @@ tasks.register('buildRpm', Rpm) {
392388
configure(commonRpmConfig('x64'))
393389
}
394390

395-
tasks.named('assemble'){
396-
dependsOn 'buildRpm', 'buildAarch64Rpm'
397-
}
398-
399-
400391
Closure dpkgExists = { it -> new File('/bin/dpkg-deb').exists() || new File('/usr/bin/dpkg-deb').exists() || new File('/usr/local/bin/dpkg-deb').exists() }
401392
Closure rpmExists = { it -> new File('/bin/rpm').exists() || new File('/usr/bin/rpm').exists() || new File('/usr/local/bin/rpm').exists() }
402393

@@ -410,6 +401,11 @@ subprojects {
410401

411402
String buildTask = "build${it.name.replaceAll(/-[a-z]/) { it.substring(1).toUpperCase() }.capitalize()}"
412403
ext.buildDist = parent.tasks.named(buildTask)
404+
tasks.named('assemble').configure {
405+
dependsOn buildDist
406+
}
407+
408+
// deprecated here for backwards compatibility of DistroTestPlugin and DistributionDownloadPlugin
413409
artifacts {
414410
'default' buildDist
415411
}

0 commit comments

Comments
 (0)