public class PomConvertTask
extends org.gradle.api.DefaultTask
| Constructor and Description |
|---|
PomConvertTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertPom()
Import repositories and/or dependencies from the pom file specified in the
pomFile
property and write them on Gradle notation to the file specified in the destination
property. |
java.io.File |
getDestination()
Get the specification for the destination file to create.
|
java.io.File |
getPomFile()
Get the specification for the pom file to import from.
|
boolean |
isConvertDependencies()
Should the dependencies from the pom file be imported and converted? Default is true.
|
boolean |
isConvertLocalRepository()
Should the local repository from the Maven settings file be imported and converted? Default
is true.
|
boolean |
isConvertRepositories()
Should the repositories from the pom file be imported and converted? Default is true.
|
boolean |
isOverwrite()
Should the destination file be overwritten if it exists? If this property is false and the
destination file exists, the task will do nothing.
|
void |
setConvertDependencies(boolean pConvertDependencies) |
void |
setConvertLocalRepository(boolean pConvertLocalRepository) |
void |
setConvertRepositories(boolean pConvertRepositories) |
void |
setDestination(java.lang.Object pPath)
Set the path of the destination file to create.
|
void |
setOverwrite(boolean pOverwrite) |
void |
setPomFile(java.lang.Object pPath)
Set the path of the pom file to import from.
|
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, getRequiredServices, getServices, getSharedResources, 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, usesService@Input public boolean isConvertRepositories()
public void setConvertRepositories(boolean pConvertRepositories)
@Input public boolean isConvertLocalRepository()
public void setConvertLocalRepository(boolean pConvertLocalRepository)
@Input public boolean isConvertDependencies()
public void setConvertDependencies(boolean pConvertDependencies)
@Input public boolean isOverwrite()
public void setOverwrite(boolean pOverwrite)
@InputFile public java.io.File getPomFile()
public void setPomFile(java.lang.Object pPath)
pPath - The pom file path. Passing null will cause the default value to be returned from
getPomFile.@OutputFile public java.io.File getDestination()
public void setDestination(java.lang.Object pPath)
pPath - The destination file path. Passing null will cause the default value to be
returned from getDestination.public void convertPom()
pomFile
property and write them on Gradle notation to the file specified in the destination
property.