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 DefaultTask
                        

    A Gradle task to upload symbolication files to Datadog servers (NDK symbol files, Proguard/R8 files, etc.)..

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getApiKey() The API key to use for uploading.
      final Unit setApiKey(String apiKey) The API key to use for uploading.
      final ApiKeySource getApiKeySource() Source of the API key set: environment, gradle property, etc.
      final Unit setApiKeySource(ApiKeySource apiKeySource) Source of the API key set: environment, gradle property, etc.
      final String getVariantName() The variant name of the application.
      final Unit setVariantName(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 String getSite() The Datadog site to upload to (one of "US1", "EU1", "US1_FED").
      final Unit setSite(String site) The Datadog site to upload to (one of "US1", "EU1", "US1_FED").
      final String getRemoteRepositoryUrl() The url of the remote repository where the source code was deployed.
      final Unit setRemoteRepositoryUrl(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 File getDatadogCiFile() datadog-ci.json file, if found or applicable for the particular task.
      final Unit setDatadogCiFile(@Optional() File datadogCiFile) datadog-ci.json file, if found or applicable for the particular task.
      abstract ListProperty<File> getSourceSetRoots() The sourceSet root folders.
      final File getRepositoryFile() The file containing the repository description.
      final Unit setRepositoryFile(File repositoryFile) The file containing the repository description.
      final Unit applyTask() Uploads the files retrieved from getFilesList to 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

      • getApiKey

        @Input() final String getApiKey()

        The API key to use for uploading.

      • 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.

      • 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.

      • applyTask

         final Unit applyTask()

        Uploads the files retrieved from getFilesList to Datadog.