netflix.nebula.gradleInterop.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nebula-kotlin-plugin Show documentation
Show all versions of nebula-kotlin-plugin Show documentation
Provides the Kotlin plugin via the Gradle plugin portal and allows Kotlin library versions to be omitted
The newest version!
package netflix.nebula
import groovy.lang.Closure
import org.gradle.api.Action
import org.gradle.api.Project
inline fun T.groovyClosure(crossinline call: () -> Unit) = object : Closure(this) {
@Suppress("unused")
fun doCall() {
call()
}
}
inline fun Project.action(crossinline call: U.() -> Unit) = Action { call(it) }