Class GithubPackagesRepositoryDsl.GithubPackagesRepositorySpec
java.lang.Object
io.github.duckasteroid.gradle.githubpackages.GithubPackagesRepositoryDsl.GithubPackagesRepositorySpec
- Enclosing class:
- GithubPackagesRepositoryDsl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()GitHub organisation or user that owns the package repository.Optional named credential profile.getRepo()Name of the GitHub repository that hosts the packages.getToken()GitHub token used for authentication.GitHub username used for authentication.voidvoidsetProfile(String profile) voidvoidvoidsetUsername(String username)
-
Constructor Details
-
GithubPackagesRepositorySpec
public GithubPackagesRepositorySpec()
-
-
Method Details
-
getOwner
GitHub organisation or user that owns the package repository. Required. -
setOwner
-
getRepo
Name of the GitHub repository that hosts the packages. Required. -
setRepo
-
getProfile
Optional named credential profile. When set, and username/token aren't explicitly provided, credentials are resolved fromgpr.<profile>.user/gpr.<profile>.keyinstead of the unqualifiedgpr.user/gpr.key. -
setProfile
-
getUsername
GitHub username used for authentication. Defaults to gpr.user (or gpr.<profile>.user) / GH_PACKAGES_READ_USER / GITHUB_ACTOR via the credential resolution chain. -
setUsername
-
getToken
GitHub token used for authentication. Defaults to gpr.key (or gpr.<profile>.key) / GH_PACKAGES_READ_TOKEN / GITHUB_TOKEN via the credential resolution chain. -
setToken
-