Class DeclaredDependency

java.lang.Object
io.github.intisy.gradle.github.api.model.DeclaredDependency

public final class DeclaredDependency extends Object
A GitHub-hosted dependency declared by a jar's embedded META-INF/github-dependencies.json.
  • Constructor Details

    • DeclaredDependency

      public DeclaredDependency(String owner, String repo, String version)
      Parameters:
      owner - the GitHub account or organization that owns the declaring repository.
      repo - the declaring repository name, without the owner prefix.
      version - the release tag the dependency was declared against.
  • Method Details

    • getOwner

      public String getOwner()
      Returns:
      the GitHub account or organization that owns the declared dependency's repository.
    • getRepo

      public String getRepo()
      Returns:
      the declared dependency's repository name, without the owner prefix.
    • getVersion

      public String getVersion()
      Returns:
      the declared dependency's release tag.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object