Skip to content

Commit a724c49

Browse files
authored
Ensure deterministic task execution ordering in DRA (#2413)
- we push different tasks output into build/distribution - should be not necessary ones we remove osshr compliant maven dra artifacts
1 parent ed64ad5 commit a724c49

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dist/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,21 @@ project.tasks.named('dependencyLicenses', DependencyLicensesTask) {
199199
it.dependencies = project.configurations.licenseChecks
200200
}
201201

202-
203202
tasks.register('copyPoms', Copy) {
204203
BasePluginExtension baseExtension = project.getExtensions().getByType(BasePluginExtension.class);
205204
from(tasks.named('generatePomFileForMainPublication'))
206205
into(new File(project.buildDir, 'distributions'))
207206
rename 'pom-default.xml', "${baseExtension.archivesName.get()}-${project.getVersion()}.pom"
208207
}
209208

209+
tasks.named('collectArtifacts') {
210+
mustRunAfter 'publishMainPublicationToNmcpMainRepository'
211+
}
212+
213+
tasks.named('publishMainPublicationToNmcpMainRepository') {
214+
mustRunAfter 'copyPoms'
215+
}
216+
210217
tasks.named('distribution').configure {
211218
dependsOn 'copyPoms'
212219
}

0 commit comments

Comments
 (0)