name.remal.gradle_plugins.dsl.extensions.org.gradle.api.tasks.SourceSet-kotlin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Show all versions of gradle-plugins-kotlin-dsl Show documentation
Remal Gradle plugins: gradle-plugins-kotlin-dsl
package name.remal.gradle_plugins.dsl.extensions
import org.gradle.api.file.SourceDirectorySet
import org.gradle.api.tasks.SourceSet
val SourceSet.kotlin: SourceDirectorySet
get() {
val extension: Any = convention["kotlin"]
val getter = extension.javaClass.getMethod("getKotlin").apply { isAccessible = true }
return getter.invoke(extension) as SourceDirectorySet
}
val SourceSet.compileKotlinTaskName: String get() = this.getCompileTaskName("Kotlin")
val SourceSet.compileKotlin2JsTaskName: String get() = this.getCompileTaskName("Kotlin2Js")