api / org.gradle.api.specs / Specs / negate

negate

open static fun <T : Any> negate(spec: Spec<in T>): Spec<T>

Returns a spec that selects everything that is not selected by the given spec.