Move Android Extensions subplugin to the main kotlin-gradle-plugin artifact

This commit is contained in:
Yan Zhulanow
2015-12-11 13:46:00 +03:00
parent d94930149b
commit 26ed1c3756
9 changed files with 59 additions and 64 deletions
@@ -23,7 +23,11 @@ import org.jetbrains.kotlin.gradle.plugin.SubpluginOption
public class ExampleSubplugin : KotlinGradleSubplugin {
override fun getExtraArguments(project: Project, task: AbstractCompile): List<SubpluginOption>? {
override fun isApplicable(project: Project, task: AbstractCompile): Boolean {
return true
}
override fun getExtraArguments(project: Project, task: AbstractCompile): List<SubpluginOption> {
println("ExampleSubplugin loaded")
return listOf(SubpluginOption("exampleKey", "exampleValue"))
}