Using GitHub Packages with Groovy Grapes for scripting

Michael Stockman <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CADLV0W6B5WaGQR===0npyELkL1C4FZWRJ0p+pPRJsw+3AFDWFA@mail.gmail.com>
Hello,

Does anyone have any experience importing GitHub packages as dependencies
using Groovy Grapes?

I have followed the tutorials for the Gradle build tool, and successfully
published a package, and then used it as a dependency in a separate
project. I am struggling to understand if it is even possible to pull the
dependency using Groovy Grapes in a script.

In the Gradle examples it seems you need to provide the github user and a
token, as well as defining a repository pointing to the GitHub repo. I am
not sure how the same might be accomplished within a groovy script using
@Grab.

Thank you,
Mike Stockman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.