# plugins

fun Project.plugins(block: PluginDependenciesSpec.() -> Unit): Nothing(source)

### Deprecated (with error)

The plugins {} block must not be used here. If you need to apply a plugin imperatively, please use apply<PluginType>() or apply(plugin = "id") instead.

Nested `plugins` blocks are NOT allowed, for example:

    project(":core") {
      plugins { java }
    }

Content copied to clipboard

If you need to apply a plugin imperatively, please use apply() or apply(plugin = "id") instead.

    project(":core") {
      apply(plugin = "java")
    }

Content copied to clipboard

#### Since

6.0