Slackbot
11/30/2023, 1:48 PMOlivierVdNest
11/30/2023, 1:48 PMOlivierVdNest
11/30/2023, 2:48 PMephemient
11/30/2023, 2:54 PMOlivierVdNest
11/30/2023, 2:55 PMVampire
11/30/2023, 3:22 PMVampire
11/30/2023, 3:22 PMOlivierVdNest
11/30/2023, 3:24 PMOlivierVdNest
11/30/2023, 3:24 PMOlivierVdNest
11/30/2023, 3:25 PMOlivierVdNest
11/30/2023, 3:25 PMVampire
11/30/2023, 3:30 PMwhere did you find that 😮I googled for you the term "github gradle registry 422 unprocessable entity" and the second hit was https://github.com/orgs/community/discussions/26328 where the accepted answer says exactly that. 🙂
Vampire
11/30/2023, 3:30 PMnow I'm getting unauthorizedthen authorize 🙂
Vampire
11/30/2023, 3:31 PMOlivierVdNest
11/30/2023, 3:31 PMOlivierVdNest
11/30/2023, 3:32 PMephemient
11/30/2023, 3:38 PMrepositories {
maven("<https://maven.pkg.github.com/OWNER/REPO>") {
name = "GitHubPackages"
credentials(PasswordCredentials::class)
}
}
to your Gradle buildscripts and
env:
ORG_GRADLE_PROJECT_GitHubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_GitHubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}
in your Actions workflows, or GitHubPackagesUsername= and GitHubPackagesPassword= in your ~/.gradle/gradle.properties locally, and everything should just workOlivierVdNest
11/30/2023, 3:45 PMcredentials(PasswordCredentials::class)
gives me a syntax errorOlivierVdNest
11/30/2023, 3:46 PMephemient
11/30/2023, 3:56 PMOlivierVdNest
11/30/2023, 3:57 PMephemient
11/30/2023, 3:58 PMephemient
11/30/2023, 3:59 PM::class or switch to kotlinOlivierVdNest
11/30/2023, 4:00 PMVampire
11/30/2023, 4:01 PMGITHUB_TOKEN set there probably misses the necessary scope for publishing to the repositoryOlivierVdNest
11/30/2023, 4:02 PMOlivierVdNest
11/30/2023, 4:02 PMVampire
11/30/2023, 4:02 PMOlivierVdNest
11/30/2023, 4:02 PMephemient
11/30/2023, 4:07 PMOlivierVdNest
11/30/2023, 4:07 PMephemient
11/30/2023, 4:10 PMpermissions:
packages: writeOlivierVdNest
11/30/2023, 4:10 PMOlivierVdNest
11/30/2023, 4:13 PM