package org.shipkit.internal.gradle.util;

import org.gradle.api.Task;
import org.gradle.api.specs.Spec;

import java.util.HashSet;
import java.util.Set;

import static edu.emory.mathcs.backport.java.util.Arrays.asList;

/**
 * Helper methods for Gradle Spec objects
 */
public class Specs {

    /**
     * Task that matches any of the provided names
     */
    public static Spec<Task> withName(final String... names) {
        Set<String> namesSet = new HashSet<>(asList(names));
        return t -> namesSet.contains(t.getName());
    }
}

@@ -166,34 +166,8 @@
 tic 
-edu.emory.mathcs.backport.
 java

Corrected the import