api / org.gradle.kotlin.dsl / org.gradle.api.artifacts.dsl.DependencyHandler / checkstyle

checkstyle

fun DependencyHandler.checkstyle(dependencyNotation: Any): Dependency?

Adds a dependency to the 'checkstyle' configuration.

Parameters

dependencyNotation - notation for the dependency to be added.

Return
The dependency.

See Also

DependencyHandler.add

inline fun DependencyHandler.checkstyle(dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency

Adds a dependency to the 'checkstyle' configuration.

Parameters

dependencyNotation - notation for the dependency to be added.

dependencyConfiguration - expression to use to configure the dependency.

Return
The dependency.

See Also

DependencyHandler.add

fun DependencyHandler.checkstyle(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null): ExternalModuleDependency

Adds a dependency to the 'checkstyle' configuration.

Parameters

group - the group of the module to be added as a dependency.

name - the name of the module to be added as a dependency.

version - the optional version of the module to be added as a dependency.

configuration - the optional configuration of the module to be added as a dependency.

classifier - the optional classifier of the module artifact to be added as a dependency.

ext - the optional extension of the module artifact to be added as a dependency.

Return
The dependency.

See Also

DependencyHandler.add

inline fun DependencyHandler.checkstyle(group: String, name: String, version: String? = null, configuration: String? = null, classifier: String? = null, ext: String? = null, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency

Adds a dependency to the 'checkstyle' configuration.

Parameters

group - the group of the module to be added as a dependency.

name - the name of the module to be added as a dependency.

version - the optional version of the module to be added as a dependency.

configuration - the optional configuration of the module to be added as a dependency.

classifier - the optional classifier of the module artifact to be added as a dependency.

ext - the optional extension of the module artifact to be added as a dependency.

dependencyConfiguration - expression to use to configure the dependency.

Return
The dependency.

See Also

DependencyHandler.create

DependencyHandler.add

inline fun <T : ModuleDependency> DependencyHandler.checkstyle(dependency: T, dependencyConfiguration: T.() -> Unit): T

Adds a dependency to the 'checkstyle' configuration.

Parameters

dependency - dependency to be added.

dependencyConfiguration - expression to use to configure the dependency.

Return
The dependency.

See Also

DependencyHandler.add