Class FileUploadTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
public abstract class FileUploadTask extends DefaultTaskA Gradle task to upload symbolication files to Datadog servers (NDK symbol files, Proguard/R8 files, etc.)..
-
-
Field Summary
Fields Modifier and Type Field Description private StringapiKeyprivate ApiKeySourceapiKeySourceprivate StringvariantNameprivate final Property<String>versionNameprivate final Property<Integer>versionCodeprivate final Property<String>serviceNameprivate Stringsiteprivate StringremoteRepositoryUrlprivate final Property<String>buildIdprivate FiledatadogCiFileprivate final ListProperty<File>sourceSetRootsprivate FilerepositoryFileprivate Booleanenabledprivate final Property<Duration>timeoutprivate final TaskStateInternalstateprivate BooleanimpliesSubProjectsprivate final BooleanhasCustomActions
-
Constructor Summary
Constructors Constructor Description FileUploadTask(ProviderFactory providerFactory, RepositoryDetector repositoryDetector)
-
Method Summary
Modifier and Type Method Description final StringgetApiKey()The API key to use for uploading. final UnitsetApiKey(String apiKey)The API key to use for uploading. final ApiKeySourcegetApiKeySource()Source of the API key set: environment, gradle property, etc. final UnitsetApiKeySource(ApiKeySource apiKeySource)Source of the API key set: environment, gradle property, etc. final StringgetVariantName()The variant name of the application. final UnitsetVariantName(String variantName)The variant name of the application. abstract Property<String>getVersionName()The version name of the application. abstract Property<Integer>getVersionCode()The version code of the application. abstract Property<String>getServiceName()The service name of the application (by default, it is your app's package name). final StringgetSite()The Datadog site to upload to (one of "US1", "EU1", "US1_FED"). final UnitsetSite(String site)The Datadog site to upload to (one of "US1", "EU1", "US1_FED"). final StringgetRemoteRepositoryUrl()The url of the remote repository where the source code was deployed. final UnitsetRemoteRepositoryUrl(String remoteRepositoryUrl)The url of the remote repository where the source code was deployed. abstract Property<String>getBuildId()Build ID which will be used for mapping file matching. final FilegetDatadogCiFile()datadog-ci.json file, if found or applicable for the particular task. final UnitsetDatadogCiFile(@Optional() File datadogCiFile)datadog-ci.json file, if found or applicable for the particular task. abstract ListProperty<File>getSourceSetRoots()The sourceSet root folders. final FilegetRepositoryFile()The file containing the repository description. final UnitsetRepositoryFile(File repositoryFile)The file containing the repository description. final UnitapplyTask()Uploads the files retrieved from getFilesListto Datadog.-
Methods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects -
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, 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 -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FileUploadTask
FileUploadTask(ProviderFactory providerFactory, RepositoryDetector repositoryDetector)
-
-
Method Detail
-
getApiKeySource
@Input() final ApiKeySource getApiKeySource()
Source of the API key set: environment, gradle property, etc.
-
setApiKeySource
final Unit setApiKeySource(ApiKeySource apiKeySource)
Source of the API key set: environment, gradle property, etc.
-
getVariantName
@Input() final String getVariantName()
The variant name of the application.
-
setVariantName
final Unit setVariantName(String variantName)
The variant name of the application.
-
getVersionName
@Input() abstract Property<String> getVersionName()
The version name of the application.
-
getVersionCode
@Input() abstract Property<Integer> getVersionCode()
The version code of the application. Need to be a provider, because resolution during configuration phase may cause incompatibility with other plugins if legacy Variant API is used.
-
getServiceName
@Input() abstract Property<String> getServiceName()
The service name of the application (by default, it is your app's package name).
-
getSite
@Input() final String getSite()
The Datadog site to upload to (one of "US1", "EU1", "US1_FED").
-
setSite
final Unit setSite(String site)
The Datadog site to upload to (one of "US1", "EU1", "US1_FED").
-
getRemoteRepositoryUrl
@Input() final String getRemoteRepositoryUrl()
The url of the remote repository where the source code was deployed.
-
setRemoteRepositoryUrl
final Unit setRemoteRepositoryUrl(String remoteRepositoryUrl)
The url of the remote repository where the source code was deployed.
-
getBuildId
@Input() abstract Property<String> getBuildId()
Build ID which will be used for mapping file matching.
-
getDatadogCiFile
@InputFile() final File getDatadogCiFile()
datadog-ci.json file, if found or applicable for the particular task.
-
setDatadogCiFile
final Unit setDatadogCiFile(@Optional() File datadogCiFile)
datadog-ci.json file, if found or applicable for the particular task.
-
getSourceSetRoots
@InputFiles() abstract ListProperty<File> getSourceSetRoots()
The sourceSet root folders.
-
getRepositoryFile
@OutputFile() final File getRepositoryFile()
The file containing the repository description.
-
setRepositoryFile
final Unit setRepositoryFile(File repositoryFile)
The file containing the repository description.
-
-
-
-