GradleConnectionBuilder.ParticipantBuilder (Gradle API 2.14.1)
Date: 2016-07-18

Package: org.gradle.tooling.connection

## [Java] Interface ParticipantBuilder

- Builds a new participant that will be included in the connection.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `ParticipantBuilder` | `useBuildDistribution()` Specifies the Gradle distribution described in the build should be used.
    `ParticipantBuilder` | `useDistribution(URI gradleDistribution)` Specifies the Gradle distribution to use.
    `ParticipantBuilder` | `useGradleVersion(String gradleVersion)` Specifies the version of Gradle to use.
    `ParticipantBuilder` | `useInstallation(File gradleHome)` Specifies the Gradle distribution to use.

- - ### Method Detail

    - #### public ParticipantBuilder useBuildDistribution()

      Specifies the Gradle distribution described in the build should be used.

      Returns:
        this

    - #### public ParticipantBuilder useDistribution(URI gradleDistribution)

      Specifies the Gradle distribution to use.

      Parameters:
        `gradleDistribution` - The distribution to use.
      Returns:
        this

    - #### public ParticipantBuilder useGradleVersion(String gradleVersion)

      Specifies the version of Gradle to use.

      Parameters:
        `gradleVersion` - The version to use.
      Returns:
        this

    - #### public ParticipantBuilder useInstallation(File gradleHome)

      Specifies the Gradle distribution to use.

      Parameters:
        `gradleHome` - The Gradle installation directory.
      Returns:
        this