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:
Ilya Matveev
2017-08-08 17:31:45 +07:00
committed by ilmat192
parent b46a8535d3
commit 53fedbf55c
5 changed files with 62 additions and 12 deletions
+7 -1
View File
@@ -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
}
}