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

name.remal.gradle_plugins.test_source_sets.IntegrationTestsPlugin Maven / Gradle / Ivy

package name.remal.gradle_plugins.test_source_sets;

import static name.remal.gradle_plugins.toolkit.ExtensionContainerUtils.getExtension;
import static name.remal.gradle_plugins.toolkit.ObjectUtils.doNotInline;

import lombok.val;
import org.gradle.api.Plugin;
import org.gradle.api.Project;

public class IntegrationTestsPlugin implements Plugin {

    public static final String INTEGRATION_SOURCE_SET_NAME = doNotInline("integrationTest");

    @Override
    public void apply(Project project) {
        project.getPluginManager().apply(TestSourceSetsPlugin.class);
        val testSourceSets = getExtension(project, TestSourceSetContainer.class);
        testSourceSets.create(INTEGRATION_SOURCE_SET_NAME);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy