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

netflix.nebula.gradleInterop.kt Maven / Gradle / Ivy

Go to download

Provides the Kotlin plugin via the Gradle plugin portal and allows Kotlin library versions to be omitted

There is a newer version: 2.0.2
Show 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) }