Package: org.gradle.api.publish.maven.tasks

## [Java] Class GenerateMavenPom

- org.gradle.api.publish.maven.tasks.GenerateMavenPom

- Generates a Maven module descriptor (POM) file.

  Since:
    1.4

- - ### Constructor Summary

    Constructors
    Constructor and description
    `GenerateMavenPom ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `doGenerate()`
    `File` | `getDestination()` The file the POM will be written to.
    `protected FileResolver` | `getFileResolver()`
    `MavenPom` | `getPom()` The Maven POM.
    `void` | `setDestination(Object destination)` Sets the destination the descriptor will be written to.
    `void` | `setPom(MavenPom pom)`

- - ### Constructor Detail

    - #### public GenerateMavenPom()

  - ### Method Detail

    - #### @TaskAction public void doGenerate()

    - #### @OutputFile public File getDestination()

      The file the POM will be written to.

      Returns:
        The file the POM will be written to

    - #### @Inject protected FileResolver getFileResolver()

    - #### public MavenPom getPom()

      The Maven POM.

      Returns:
        The Maven POM.

    - #### public void setDestination(Object destination)

      Sets the destination the descriptor will be written to. The value is resolved with Project.file

      Parameters:
        `destination` - The file the descriptor will be written to.

    - #### public void setPom(MavenPom pom)