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

dev.gradleplugins.runnerkit.providers.InjectedClasspathProvider Maven / Gradle / Ivy

There is a newer version: 0.0.148
Show newest version
package dev.gradleplugins.runnerkit.providers;

import dev.gradleplugins.runnerkit.InvalidPluginMetadataException;
import dev.gradleplugins.runnerkit.utils.PluginUnderTestMetadataReading;

import java.io.File;
import java.util.Collections;
import java.util.List;

public final class InjectedClasspathProvider extends AbstractGradleExecutionProvider> {
    public static InjectedClasspathProvider of(List classpath) {
        return fixed(InjectedClasspathProvider.class, classpath);
    }

    public static InjectedClasspathProvider empty() {
        return fixed(InjectedClasspathProvider.class, Collections.emptyList());
    }

    public static InjectedClasspathProvider fromPluginUnderTestMetadata() throws InvalidPluginMetadataException {
        return fixed(InjectedClasspathProvider.class, PluginUnderTestMetadataReading.readImplementationClasspath());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy