dev.gradleplugins.internal.util.TestingStrategyPropertyUtils 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.util;
import dev.gradleplugins.GradlePluginTestingStrategy;
import org.gradle.api.plugins.ExtensionAware;
import org.gradle.api.provider.Property;
import org.gradle.api.reflect.TypeOf;
public final class TestingStrategyPropertyUtils {
public static final String TESTING_STRATEGY_EXTENSION_NAME = "testingStrategy";
public static final TypeOf> TESTING_STRATEGY_PROPERTY_TYPE = new TypeOf>() {};
@SuppressWarnings("unchecked")
public static Property testingStrategy(Object target) {
return (Property) ((ExtensionAware) target).getExtensions().getByName(TESTING_STRATEGY_EXTENSION_NAME);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy