public class PackagesPublishExtension
extends java.lang.Object
publishGithub also deploys the project's Maven publications to GitHub
Packages, alongside the jars it attaches to the GitHub release.
publishGithub {
packages {
enabled = true
}
}
owner and repo fall back to the ones publishGithub already resolves, so
an adopting build states nothing but enabled.
| Constructor and Description |
|---|
PackagesPublishExtension() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOwner() |
java.lang.String |
getRepo() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Controls whether
publishGithub also publishes to GitHub Packages. |
void |
setOwner(java.lang.String owner)
Overrides the owner of the repository the packages are published under.
|
void |
setRepo(java.lang.String repo)
Overrides the repository the packages are published under.
|
public void setEnabled(boolean enabled)
publishGithub also publishes to GitHub Packages. Defaults to
false.enabled - whether to publish to GitHub Packages.public boolean isEnabled()
publishGithub also publishes to GitHub Packages.public void setOwner(java.lang.String owner)
owner - the repository owner; null takes the one publishGithub resolves.public java.lang.String getOwner()
publishGithub resolves.public void setRepo(java.lang.String repo)
repo - the repository name; null takes the one publishGithub resolves.public java.lang.String getRepo()
publishGithub resolves.