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

main.com.netflix.nebula.interop.projects.kt Maven / Gradle / Ivy

package com.netflix.nebula.interop

import org.gradle.api.Project

/**
 * Execute an action either on {@link Project#afterEvaluate} or immediately, if the project has already been evaluated.
 */
inline fun Project.onExecute(crossinline action: () -> Unit) {
    if (state.executed) {
        action()
    } else {
        afterEvaluate { action() }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy