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