Class GithubPackagesRepositoryDsl
java.lang.Object
io.github.duckasteroid.gradle.githubpackages.GithubPackagesRepositoryDsl
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:
- Gradle properties:
gpr.user/gpr.key - Environment variables:
GITHUB_ACTOR/GITHUB_TOKEN - Environment variables:
GH_PACKAGES_READ_USER/GH_PACKAGES_READ_TOKEN
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionGithubPackagesRepositoryDsl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories, org.gradle.api.provider.ProviderFactory providers) -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(groovy.lang.Closure<?> closure) voidcall(org.gradle.api.Action<? super GithubPackagesRepositoryDsl.GithubPackagesRepositorySpec> action)
-
Constructor Details
-
GithubPackagesRepositoryDsl
public GithubPackagesRepositoryDsl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories, org.gradle.api.provider.ProviderFactory providers)
-
-
Method Details
-
call
public void call(groovy.lang.Closure<?> closure) -
call
public void call(org.gradle.api.Action<? super GithubPackagesRepositoryDsl.GithubPackagesRepositorySpec> action)
-