PluginRequest (Gradle API 9.3.1)
Description: declaration: package: org.gradle.plugin.management, interface: PluginRequest

Package org.gradle.plugin.management

# Interface PluginRequest

public interface PluginRequest
Contains information about a plugin that has been requested for resolution.

Since:
  3.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PluginId`
  `getId()`
  The ID of the plugin requested.
  `@Nullable ModuleVersionSelector`
  `getModule()`
  The implementation module of the plugin if one was explicitly specified, otherwise null.
  `@Nullable ComponentSelector`
  `getSelector()`
  A selector for the implementation of the plugin if one was explicitly specified, otherwise null.
  `@Nullable String`
  `getVersion()`
  The version of the plugin if one was specified, otherwise null.

- ## Method Details

  - ### getId

    PluginId getId()
    The ID of the plugin requested. Never null.

  - ### getVersion

    @Nullable String getVersion()
    The version of the plugin if one was specified, otherwise null.

  - ### getModule

    @Nullable ModuleVersionSelector getModule()
    The implementation module of the plugin if one was explicitly specified, otherwise null.

    Prefer `getSelector()`.

  - ### getSelector

    @Nullable ComponentSelector getSelector()
    A selector for the implementation of the plugin if one was explicitly specified, otherwise null.
    Since:
      9.2.0