api / org.gradle.plugin.devel.tasks / PluginUnderTestMetadata

PluginUnderTestMetadata

@Incubating open class PluginUnderTestMetadata : DefaultTask

Custom task for generating the metadata for a plugin user test.

Since
2.13

Constructors

<init>

PluginUnderTestMetadata()

Custom task for generating the metadata for a plugin user test.

Properties

IMPLEMENTATION_CLASSPATH_PROP_KEY

static val IMPLEMENTATION_CLASSPATH_PROP_KEY: String

METADATA_FILE_NAME

static val METADATA_FILE_NAME: String

Functions

generate

open fun generate(): Unit

getOutputDirectory

open fun getOutputDirectory(): File

The target output directory used for writing the classpath manifest. Defaults to "$buildDir/$task.name".

getPluginClasspath

open fun getPluginClasspath(): FileCollection

The code under test. Defaults to sourceSets.main.runtimeClasspath.

setOutputDirectory

open fun setOutputDirectory(outputDirectory: File): Unit

setPluginClasspath

open fun setPluginClasspath(pluginClasspath: FileCollection): Unit