All Downloads are FREE. Search and download functionalities are using the official Maven repository.

name.remal.gradle_plugins.dsl.extensions.org.gradle.api.tasks.SourceSet-kotlin.kt Maven / Gradle / Ivy

There is a newer version: 1.9.2
Show newest version
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")




© 2015 - 2024 Weber Informatics LLC | Privacy Policy