gradle-github-packages-plugin is a toolchain for using GitHub Packages to host maven artifacts. It simplifies:
- Consuming Gradle plugins, JARs and other maven Artifacts
- Publishing JARs
In your top level build.gradle add:
plugins {
id 'com.theoremlp.github-packages' version '<latestVersion>'
}
allProjects {
apply plugin: 'com.theoremlp.github-packages'
repositories {
githubPackages { repository '<githubOrganization>/<githubRepository>' }
}
}
Then ensure that in your local environment and in CI there is a file ~/.github/credentials.json
:
{
"username": "<userName>",
"accessToken": "<accessToken>"
}
where <accesToken>
is personal access token (classic) with at least read:packages
scope.
To contribute:
- Install Java 17 -
brew tap homebrew/cask-versions && brew install --cask homebrew/cask-versions/zulu17
- Setup
JAVA_HOME
-export JAVA_HOME=$(/usr/libexec/java_home -v 17)
- Install Intellij via the Jetbrains Toolbox
- Open the project using Intellij