dev.gradleplugins.runnerkit.providers.InjectedClasspathProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-runner-kit-impl Show documentation
Show all versions of gradle-runner-kit-impl Show documentation
Gradle runner kit implementation.
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());
}
}