java.lang.Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, Configurable<Task>
@UntrackedTask(because="Gradle doesn\'t understand the data structures used to configure this task") public abstract 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() |
|
java.io.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.publish.maven.internal.dependencies.VersionRangeMapper |
getVersionRangeMapper() |
Deprecated.
This method will be removed in Gradle 9.0
|
void |
setDestination(java.io.File destination) |
Sets the destination the descriptor will be written to.
|
void |
setDestination(java.lang.Object destination) |
Sets the destination the descriptor will be written to.
|
void |
setPom(MavenPom pom) |
|
GenerateMavenPom |
withCompileScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes) |
Deprecated.
This method will be removed in Gradle 9.0.
|
GenerateMavenPom |
withRuntimeScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes runtimeScopeAttributes) |
Deprecated.
This method will be removed in Gradle 9.0.
|
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
@Inject protected org.gradle.api.internal.file.FileResolver getFileResolver()
@Inject @Deprecated protected org.gradle.api.publish.maven.internal.dependencies.VersionRangeMapper getVersionRangeMapper()
@Deprecated public GenerateMavenPom withCompileScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes compileScopeAttributes)
@Deprecated public GenerateMavenPom withRuntimeScopeAttributes(org.gradle.api.internal.attributes.ImmutableAttributes runtimeScopeAttributes)
public void setPom(MavenPom pom)
@OutputFile public java.io.File getDestination()
public void setDestination(java.io.File destination)
destination
- The file the descriptor will be written to.public void setDestination(java.lang.Object destination)
Project.file(Object)
destination
- The file the descriptor will be written to.public void doGenerate()