diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-08 10:47:05 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-07-08 18:59:57 +0200 |
commit | caf48e76f3bff5e9907cd094cf0719f623e528d5 (patch) | |
tree | 554b313645a83749afba1e77af35b930bbf4448f /buildSrc/src/main/kotlin/org/jetbrains | |
parent | 6d1e25756c3e8c43ce4d5721e7665f439a19e47c (diff) | |
download | dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.gz dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.tar.bz2 dokka-caf48e76f3bff5e9907cd094cf0719f623e528d5.zip |
Implement simple MavenIntegrationTest.kt
Diffstat (limited to 'buildSrc/src/main/kotlin/org/jetbrains')
-rw-r--r-- | buildSrc/src/main/kotlin/org/jetbrains/taskUtils.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/taskUtils.kt b/buildSrc/src/main/kotlin/org/jetbrains/taskUtils.kt new file mode 100644 index 00000000..b018ba13 --- /dev/null +++ b/buildSrc/src/main/kotlin/org/jetbrains/taskUtils.kt @@ -0,0 +1,13 @@ +package org.jetbrains + +import org.gradle.api.Task + +fun Task.dependsOnMavenLocalPublication() { + project.rootProject.allprojects.forEach { otherProject -> + otherProject.invokeWhenEvaluated { evaluatedProject -> + evaluatedProject.tasks.findByName("publishToMavenLocal")?.let { publishingTask -> + this.dependsOn(publishingTask) + } + } + } +} |