Class GithubPackagesExtension
java.lang.Object
io.github.duckasteroid.gradle.githubpackages.GithubPackagesExtension
Extension for configuring the GitHub Packages plugin.
githubPackages {
owner = 'my-org'
repository = 'my-repo'
// username and token default from gpr.user/gpr.key (gradle.properties),
// then fall back to GITHUB_ACTOR / GITHUB_TOKEN
}
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGithubPackagesExtension(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<String>getOwner()GitHub organisation or user that owns the package repository.abstract org.gradle.api.provider.Property<String>Name of the GitHub repository that hosts the packages.abstract org.gradle.api.provider.Property<String>getToken()GitHub token used for authentication.abstract org.gradle.api.provider.Property<String>GitHub username used for authentication.mavenUrl()Returns the Maven URL for this GitHub Packages repository.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
GithubPackagesExtension
@Inject public GithubPackagesExtension(org.gradle.api.model.ObjectFactory objects, org.gradle.api.provider.ProviderFactory providers)
-
-
Method Details
-
getOwner
GitHub organisation or user that owns the package repository. -
getRepository
Name of the GitHub repository that hosts the packages. -
getUsername
GitHub username used for authentication. Defaults togpr.userfrom gradle.properties, thenGITHUB_ACTOR. -
getToken
GitHub token used for authentication. Defaults togpr.keyfrom gradle.properties, thenGITHUB_TOKEN. -
mavenUrl
Returns the Maven URL for this GitHub Packages repository.
-