gradle-plugin: Add dependsOn methods into configs
This patch adds the `dependsOn(Task)` method to both interop and
compilation configs. It allows one to use a simple syntax to add
dependencies to compilation/stub generation tasks:
konanArtifacts {
foo { dependsOn anotherTask }
}
Issue: KT-19534
This commit is contained in:
+7
-1
@@ -164,6 +164,9 @@ For this project the task graph will be the following:
|
||||
|
||||
// Print all parameters during the build.
|
||||
dumpParameters(true)
|
||||
|
||||
// Add the `anotherTask` to the compilation task dependencies.
|
||||
dependsOn anotherTask
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,6 +185,9 @@ For this project the task graph will be the following:
|
||||
|
||||
link <files which will be linked with native stubs> // Additional files to link with native stubs.
|
||||
|
||||
dumpParameters(true) // Print all parameters during the build.
|
||||
dumpParameters(true) // Print all parameters during the build.
|
||||
|
||||
// Add the `anotherTask` to the stub generation task dependencies.
|
||||
dependsOn anotherTask
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user