gradle
8.6

# Plugin

interface Plugin<T>(source)

A `Plugin` represents an extension to Gradle. A plugin applies some configuration to a target object. Usually, this target object is a org.gradle.api.Project, but plugins can be applied to any type of objects.

#### Parameters

<T>

The type of object which this plugin can configure.

#### Inheritors

JavaGradlePluginPlugin
WrapperPlugin
BuildInitPlugin
AntlrPlugin
SigningPlugin
EarPlugin
JacocoPlugin
JacocoReportAggregationPlugin
ScalaBasePlugin
ScalaPlugin
WarPlugin
JavaLibraryPlugin
JavaLibraryDistributionPlugin
ApplicationPlugin
GroovyBasePlugin
GroovyPlugin
JavaTestFixturesPlugin
JavaPlugin
TestReportAggregationPlugin
JvmTestSuitePlugin
JavaBasePlugin
JavaPlatformPlugin
JvmToolchainManagementPlugin
JvmToolchainsPlugin
JvmEcosystemPlugin
ProjectReportsPlugin
HelpTasksPlugin
BasePlugin
ReportingBasePlugin
CppUnitTestPlugin
NativeTestingBasePlugin
NativeBinariesTestPlugin
CUnitPlugin
CUnitConventionPlugin
GoogleTestConventionPlugin
GoogleTestPlugin
XCTestConventionPlugin
CppApplicationPlugin
CppBasePlugin
CppLangPlugin
CppPlugin
CppLibraryPlugin
NativeBasePlugin
CLangPlugin
CPlugin
ObjectiveCppLangPlugin
ObjectiveCppPlugin
SwiftBasePlugin
SwiftLibraryPlugin
SwiftApplicationPlugin
ObjectiveCLangPlugin
ObjectiveCPlugin
AssemblerPlugin
AssemblerLangPlugin
WindowsResourceScriptPlugin
WindowsResourcesPlugin
SwiftPackageManagerExportPlugin
VersionCatalogPlugin
MavenPublishPlugin
IvyPublishPlugin
PublishingPlugin
TestingModelBasePlugin
TestSuiteBasePlugin
TestingBasePlugin
GccCompilerPlugin
SwiftCompilerPlugin
MicrosoftVisualCppCompilerPlugin
ClangCompilerPlugin
NativeComponentModelPlugin
NativeComponentPlugin
DistributionPlugin
ComponentModelBasePlugin
LanguageBasePlugin
LifecycleBasePlugin
BinaryBasePlugin
ComponentBasePlugin
BuildDashboardPlugin

## Functions

apply
Link copied to clipboard
abstract fun apply(target: T)
Apply this plugin to the given target object.