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

dev.gradleplugins.internal.GradlePluginTestingStrategyFactoryInternal Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package dev.gradleplugins.internal;

import dev.gradleplugins.GradlePluginTestingStrategy;
import dev.gradleplugins.GradlePluginTestingStrategyFactory;
import org.gradle.api.model.ObjectFactory;

import javax.inject.Inject;

import static dev.gradleplugins.internal.GradlePluginTestingStrategyInternal.*;

public abstract class GradlePluginTestingStrategyFactoryInternal implements GradlePluginTestingStrategyFactory {
    @Inject
    protected abstract ObjectFactory getObjects();

    @Override
    public GradlePluginTestingStrategy getCoverageForMinimumVersion() {
        return getObjects().newInstance(GradlePluginTestingStrategyInternal.class, MINIMUM_GRADLE);
    }

    @Override
    public GradlePluginTestingStrategy getCoverageForLatestNightlyVersion() {
        return getObjects().newInstance(GradlePluginTestingStrategyInternal.class, LATEST_NIGHTLY);
    }

    @Override
    public GradlePluginTestingStrategy getCoverageForLatestGlobalAvailableVersion() {
        return getObjects().newInstance(GradlePluginTestingStrategyInternal.class, LATEST_GLOBAL_AVAILABLE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy