gradle
8.2

# Plugin

interface Plugin<T>

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

## Functions

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