@CacheableTask
public class GenerateRestClientTask
extends org.gradle.api.DefaultTask
apply plugin: 'li-pegasus2'Optionally, you can specify certain resource classes to be generated idl
pegasus.keepDataTemplates is a boolean that isn't used right now, but might be implemented in the future..clientOptions.addClientItem(' ', ' ', )
| Constructor and Description |
|---|
GenerateRestClientTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate() |
boolean |
get_isRestli1BuildersDeprecated()
Deprecated.
use
isRestli1BuildersDeprecated() instead |
org.gradle.api.file.FileCollection |
getCodegenClasspath() |
java.io.File |
getDestinationDir() |
java.io.File |
getInputDir() |
boolean |
getIsRestli2FormatSuppressed()
Deprecated.
use
isRestli2FormatSuppressed() instead |
org.gradle.api.file.FileCollection |
getResolverPath() |
org.gradle.api.file.FileCollection |
getRuntimeClasspath() |
boolean |
is_isRestli1BuildersDeprecated()
Deprecated.
use
isRestli1BuildersDeprecated() instead |
boolean |
isIsRestli2FormatSuppressed()
Deprecated.
use
isRestli2FormatSuppressed() instead |
boolean |
isRestli1BuildersDeprecated() |
boolean |
isRestli2FormatSuppressed() |
void |
set_isRestli1BuildersDeprecated(boolean restli1BuildersDeprecated)
Deprecated.
use
setRestli1BuildersDeprecated(boolean) instead |
void |
setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath) |
void |
setDestinationDir(java.io.File destinationDir) |
void |
setInputDir(java.io.File inputDir) |
void |
setIsRestli2FormatSuppressed(boolean restli2FormatSuppressed)
Deprecated.
use
setRestli2FormatSuppressed(boolean) instead |
void |
setResolverPath(org.gradle.api.file.FileCollection resolverPath) |
void |
setRestli1BuildersDeprecated(boolean restli1BuildersDeprecated) |
void |
setRestli2FormatSuppressed(boolean restli2FormatSuppressed) |
void |
setRuntimeClasspath(org.gradle.api.file.FileCollection runtimeClasspath) |
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic void generate()
@InputDirectory @SkipWhenEmpty @PathSensitive(value=RELATIVE) public java.io.File getInputDir()
public void setInputDir(java.io.File inputDir)
@Classpath public org.gradle.api.file.FileCollection getResolverPath()
public void setResolverPath(org.gradle.api.file.FileCollection resolverPath)
@Classpath public org.gradle.api.file.FileCollection getRuntimeClasspath()
public void setRuntimeClasspath(org.gradle.api.file.FileCollection runtimeClasspath)
@Classpath public org.gradle.api.file.FileCollection getCodegenClasspath()
public void setCodegenClasspath(org.gradle.api.file.FileCollection codegenClasspath)
@OutputDirectory public java.io.File getDestinationDir()
public void setDestinationDir(java.io.File destinationDir)
@Deprecated public boolean getIsRestli2FormatSuppressed()
isRestli2FormatSuppressed() insteadA Groovy property with this name was exposed, which leads to this lengthy getter name. In Java, boolean fields are named without the "is" prefix.
@Deprecated public boolean isIsRestli2FormatSuppressed()
isRestli2FormatSuppressed() insteadA Groovy property with this name was exposed, which leads to this lengthy getter name. In Java, boolean fields are named without the "is" prefix.
@Internal public boolean isRestli2FormatSuppressed()
@Deprecated public void setIsRestli2FormatSuppressed(boolean restli2FormatSuppressed)
setRestli2FormatSuppressed(boolean) insteadA Groovy property with this name was exposed, which leads to this lengthy setter name. In Java, boolean fields are named without the "is" prefix.
public void setRestli2FormatSuppressed(boolean restli2FormatSuppressed)
@Deprecated public boolean get_isRestli1BuildersDeprecated()
isRestli1BuildersDeprecated() insteadA Groovy property with this name was exposed, which leads to this lengthy getter name. In Java, boolean fields are named without the "is" prefix.
@Deprecated public boolean is_isRestli1BuildersDeprecated()
isRestli1BuildersDeprecated() insteadA Groovy property with this name was exposed, which leads to this lengthy getter name. In Java, boolean fields are named without the "is" prefix.
@Internal public boolean isRestli1BuildersDeprecated()
@Deprecated public void set_isRestli1BuildersDeprecated(boolean restli1BuildersDeprecated)
setRestli1BuildersDeprecated(boolean) insteadA Groovy property with this name was exposed, which leads to this lengthy setter name. In Java, boolean fields are named without the "is" prefix.
public void setRestli1BuildersDeprecated(boolean restli1BuildersDeprecated)