gradle
8.4

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

## Functions

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