# javadocToolFor

abstract fun javadocToolFor(config: Action<in JavaToolchainSpec>): Provider<JavadocTool>(source)

Obtain a JavadocTool matching the JavaToolchainSpec, as configured by the provided action.

#### Return

A `Provider<JavadocTool>`

#### Since

6.7

#### Parameters

config

The configuration of the `JavaToolchainSpec`

abstract fun javadocToolFor(spec: JavaToolchainSpec): Provider<JavadocTool>(source)

Obtain a JavadocTool matching the JavaToolchainSpec.

#### Return

A `Provider<JavadocTool>`

#### Since

6.7

#### Parameters

spec

The `JavaToolchainSpec`