Fix eager inter-project dependency
This commit is contained in:
@@ -8,12 +8,15 @@ idePluginDependency {
|
|||||||
val jar: Jar by tasks
|
val jar: Jar by tasks
|
||||||
|
|
||||||
jar.apply {
|
jar.apply {
|
||||||
dependsOn(":kotlin-compiler:distKotlinc")
|
val compilerProjectName = ":kotlin-compiler"
|
||||||
// from {
|
val distTaskName = "distKotlinc"
|
||||||
// val distKotlincTask = project(":kotlin-compiler").tasks.getByName("distKotlinc")
|
|
||||||
// (distKotlincTask)
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
dependsOn("$compilerProjectName:$distTaskName")
|
||||||
|
|
||||||
|
from {
|
||||||
|
val distKotlincTask = project(compilerProjectName).tasks.getByName(distTaskName)
|
||||||
|
distKotlincTask.outputs.files
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|||||||
Reference in New Issue
Block a user