main.com.netflix.nebula.interop.configurations.kt Maven / Gradle / Ivy
package com.netflix.nebula.interop
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.ResolvableDependencies
/**
* A onResolve hook that determines is the handler has been copied, and nops if so.
*/
inline fun Configuration.onResolve(crossinline action: (ResolvableDependencies) -> Unit) {
incoming.beforeResolve { incoming ->
if (this.incoming == incoming) {
action(incoming)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy