public class TaskDiluvUpload
extends org.gradle.api.DefaultTask
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
apiURL
The URL used for communicating with Diluv.
|
java.lang.String |
changelog
The change log data to associate with the new file.
|
java.lang.String |
classifier
The type of file being uploaded.
|
ResponseError |
errorInfo
The response from the API when the file failed to upload.
|
boolean |
failSilently
Allows build to continue even if the upload failed.
|
java.lang.String |
gameVersion
The version of the game the file supports.
|
int |
projectId
The ID of the project to upload the file to.
|
java.lang.String |
projectVersion
The version of the project being uploaded.
|
java.lang.String |
releaseType
The release type for the project.
|
java.lang.String |
token
The API token used to communicate with Diluv.
|
java.lang.Object |
uploadFile
The upload artifact file.
|
ResponseUpload |
uploadInfo
The response from the API when the file was uploaded successfully.
|
| Constructor and Description |
|---|
TaskDiluvUpload() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply() |
java.lang.String |
toString() |
void |
upload(java.net.URI endpoint,
java.io.File file)
Uploads a file using the provided configuration.
|
boolean |
wasUploadSuccessful()
Checks if the upload was successful or not.
|
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileappendParallelSafeAction, 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, shouldRunAfterpublic java.lang.String apiURL
public java.lang.String token
public int projectId
public java.lang.String projectVersion
public java.lang.String changelog
public java.lang.Object uploadFile
resolveFile(Project, Object, File).public java.lang.String releaseType
public java.lang.String classifier
public java.lang.String gameVersion
public boolean failSilently
@Nullable public ResponseUpload uploadInfo
@Nullable public ResponseError errorInfo
public boolean wasUploadSuccessful()
public void apply()
public void upload(java.net.URI endpoint,
java.io.File file)
throws java.io.IOException
endpoint - The upload endpoint.file - The file to upload.java.io.IOException - Whenever something goes wrong wit uploading the file.public java.lang.String toString()
toString in class org.gradle.api.internal.AbstractTask