dev.gradleplugins.internal.GradlePluginTestingStrategyFactoryInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin-development Show documentation
Show all versions of gradle-plugin-development Show documentation
Gradle plugin development plugins.
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