Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (set in sourceSets) {
- def taskName = "source${set.name.capitalize()}Kotlin"
- def dir = new File(project.getBuildDir(), "sources/${set.name}/kotlin")
- task(taskName, type: TaskSourceCopy) {
- source = set.getKotlin()
- output = dir
- }
- def compileTask = tasks[set.getCompileTaskName("kotlin")]
- compileTask.source = dir
- compileTask.dependsOn taskName
- def dirPath = dir.toPath()
- compileKotlin.include {
- return it.file.toPath().startsWith(dirPath)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement