Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
public class GenerateMavenPom extends DefaultTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
GenerateMavenPom() |
Modifier and Type | Method | Description |
---|---|---|
void |
doGenerate() |
|
File |
getDestination() |
The file the POM will be written to.
|
protected org.gradle.api.internal.file.FileResolver |
getFileResolver() |
|
MavenPom |
getPom() |
The Maven POM.
|
protected org.gradle.api.publication.maven.internal.VersionRangeMapper |
getVersionRangeMapper() |
|
void |
setDestination(File destination) |
Sets the destination the descriptor will be written to.
|
void |
setDestination(Object destination) |
Sets the destination the descriptor will be written to.
|
void |
setPom(MavenPom pom) |
|
GenerateMavenPom |
withCompileScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes) |
|
GenerateMavenPom |
withRuntimeScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes) |
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Inject protected org.gradle.api.internal.file.FileResolver getFileResolver()
@Inject protected org.gradle.api.publication.maven.internal.VersionRangeMapper getVersionRangeMapper()
public GenerateMavenPom withCompileScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes)
public GenerateMavenPom withRuntimeScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes)
public void setPom(MavenPom pom)
@OutputFile public File getDestination()
public void setDestination(File destination)
destination
- The file the descriptor will be written to.public void setDestination(Object destination)
Project.file(Object)
destination
- The file the descriptor will be written to.public void doGenerate()