Class DependencySnapshotTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
io.freefair.gradle.plugins.github.dependencies.DependencySnapshotTask
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, PatternFilterable, Configurable<Task>

@Deprecated public abstract class DependencySnapshotTask extends SourceTask
Deprecated.
  • Constructor Details

    • DependencySnapshotTask

      public DependencySnapshotTask()
      Deprecated.
  • Method Details

    • getOutputFile

      @OutputFile public abstract RegularFileProperty getOutputFile()
      Deprecated.
    • getSha

      @Input public abstract Property<String> getSha()
      Deprecated.
      The commit SHA associated with this dependency snapshot. Maximum length: 40 characters.
    • getRef

      @Input public abstract Property<String> getRef()
      Deprecated.
      The repository branch that triggered this snapshot.
      Returns:
      The repository branch that triggered this snapshot.
    • getJobId

      @Input @Optional public abstract Property<String> getJobId()
      Deprecated.
      The external ID of the job.
      Returns:
      The external ID of the job.
    • getJobCorrelator

      @Input public abstract Property<String> getJobCorrelator()
      Deprecated.
      Correlator provides a key that is used to group snapshots submitted over time. Only the "latest" submitted snapshot for a given combination of job.correlator and detector.name will be considered when calculating a repository's current dependencies. Correlator should be as unique as it takes to distinguish all detection runs for a given "wave" of CI workflow you run. If you're using GitHub Actions, a good default value for this could be the environment variables GITHUB_WORKFLOW and GITHUB_JOB concatenated together. If you're using a build matrix, then you'll also need to add additional key(s) to distinguish between each submission inside a matrix variation.
    • getJobHtmlUrl

      @Input @Optional public abstract Property<String> getJobHtmlUrl()
      Deprecated.
      The url for the job.
      Returns:
      The url for the job.
    • getSource

      @PathSensitive(NONE) public FileTree getSource()
      Deprecated.
      Overrides:
      getSource in class SourceTask
    • buildSnapshot

      public void buildSnapshot() throws IOException
      Deprecated.
      Throws:
      IOException