Skip to content

Commit 96c5a49

Browse files
Sergey Shatunovqwwdfsad
Sergey Shatunov
authored andcommitted
Cover all publications in bom
1 parent 2fc234c commit 96c5a49

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

kotlinx-coroutines-bom/build.gradle

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ def name = project.name
1010
dependencyManagement {
1111
dependencies {
1212
rootProject.subprojects.each {
13-
if (!ext.unpublished.contains(it.name) && it.name != name) {
14-
dependency(group: it.group, name: it.name, version: it.version)
13+
if (ext.unpublished.contains(it.name)) return
14+
if (it.name == name) return
15+
if (!it.plugins.hasPlugin('maven-publish')) return
16+
evaluationDependsOn(it.path)
17+
it.publishing.publications.all {
18+
if (it.artifactId.endsWith("-kotlinMultiplatform")) return
19+
if (it.artifactId.endsWith("-metadata")) return
20+
dependency(group: it.groupId, name: it.artifactId, version: it.version)
1521
}
1622
}
1723
}

0 commit comments

Comments
 (0)