Class GithubPackagesRepositoryDsl

java.lang.Object
io.github.duckasteroid.gradle.githubpackages.GithubPackagesRepositoryDsl

public class GithubPackagesRepositoryDsl extends Object
DSL entrypoint for use inside a repositories block within build scripts.

 repositories {
     gitHubPackages {
         owner = "duckAsteroid"
         repo = "testing"
         // Optional: override credentials
         // username = "my-user"
         // token = "ghp_xxx"
     }
 }
 

Credential Resolution: If username/token are not explicitly provided, they are resolved using a three-tier fallback:

  1. Gradle properties: gpr.user / gpr.key
  2. Environment variables: GITHUB_ACTOR / GITHUB_TOKEN
  3. Environment variables: GH_PACKAGES_READ_USER / GH_PACKAGES_READ_TOKEN
  • Constructor Details

    • GithubPackagesRepositoryDsl

      public GithubPackagesRepositoryDsl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories, org.gradle.api.provider.ProviderFactory providers)
  • Method Details