blob: ef9c5e6aac01e8fed3e7598968e4eb4015a23884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
}
}
}
}
|