Skip to content

Commit ec5318b

Browse files
author
Abduqodiri Qurbonzoda
authored
Fix publishToBuildLocal task dependency declaration (#20)
1 parent 50c83f7 commit ec5318b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: main/src/kotlinx/team/infra/Publishing.kt

+3-5
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,9 @@ private fun Project.createBuildRepository(name: String, rootBuildLocal: Task) {
145145
delete(dir)
146146
}
147147

148-
tasks.withType(PublishToMavenRepository::class.java).configureEach {
149-
if (this.repository == repo) {
150-
compositeTask.dependsOn(this)
151-
}
152-
}
148+
compositeTask.dependsOn(
149+
tasks.withType(PublishToMavenRepository::class.java).matching { it.repository == repo }
150+
)
153151
}
154152
}
155153
}

0 commit comments

Comments
 (0)