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

dev.gradleplugins.internal.util.TestingStrategyPropertyUtils Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
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