Trying to push the Gradle project to Github package registry, but not working as expected.
Using io.freefair.github.package-registry-maven-publish
plugin for Gradle.
Configure GitHub in build.gradle
with data needed to publish - code below. And run the publishing task publishAllPublicationsToGutHub
. Getting no error but I can't see my package in GitHub package registry.
github {
slug
username = "myGitUserName"
token = "myTokenWithRightAccess"
tag = "HEAD"
travis = true
}
Expecting some examples of how to publish to Github package registry with Gradle or what I'm doing wrong when publishing
To use a published package from GitHub Packages, add the package as a dependency and add the repository to your project. For more information, see "Declaring dependencies" in the Gradle documentation. Authenticate to GitHub Packages.
Complete those properties correctly
gpr.user
)gpr.key
)@See demo
https://github.com/youngerier/packagesdemo
https://help.github.com/en/github/managing-packages-with-github-packages/configuring-gradle-for-use-with-github-packages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With