Skip to content

Commit c30e933

Browse files
committed
[skip ci] wire up task after eval due to publication creation order
1 parent 1db9fe4 commit c30e933

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

gradle/publish-root-config.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ subprojects {
140140
}
141141
}
142142

143-
tasks.register('publishAllPublicationsToTestCaseMavenRepoRepository').configure {
144-
dependsOn(
145-
subprojects
146-
.findAll { it.name in publishedProjects }
147-
.collect { it.tasks.named('publishAllPublicationsToTestCaseMavenRepoRepository') }
148-
)
143+
project.afterEvaluate {
144+
tasks.register('publishAllPublicationsToTestCaseMavenRepoRepository').configure {
145+
dependsOn(
146+
subprojects
147+
.findAll { it.name in publishedProjects }
148+
.collect { it.tasks.named('publishAllPublicationsToTestCaseMavenRepoRepository') }
149+
)
150+
}
149151
}
150152

151153
def aggregatePublishedArtifacts = tasks.register('aggregatePublishedArtifacts')

0 commit comments

Comments
 (0)