From 23f8b880a3ad170b289c9857ca568fe55cd66f08 Mon Sep 17 00:00:00 2001 From: Chaosjan44 Date: Mon, 30 Jun 2025 23:41:33 +0200 Subject: [PATCH] OSSRH Sunset - switch to central (only that linktosriram's s3-lite isn't on there (yet) so we need to go through GitHub with auth) --- build.gradle | 6 ++++++ gradle.properties | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index ca6c72fc..9498d343 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,12 @@ allprojects { repositories { mavenLocal() maven { url 'https://libraries.minecraft.net/' } + maven { url "https://maven.pkg.github.com/linktosriram/s3-lite" + credentials { + username = project.findProperty("gpr.user") ?: System.getenv("USERNAME") + password = project.findProperty("gpr.key") ?: System.getenv("TOKEN") + } + } maven { url "https://oss.sonatype.org/content/repositories/releases" } maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://repo.mikeprimm.com" } diff --git a/gradle.properties b/gradle.properties index 1f468803..6b6d6983 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,8 @@ org.gradle.jvmargs=-Xmx4G org.gradle.daemon=false org.gradle.parallel=false +# GitHub user and password (workaround for OSSRH beeing sunset - https://central.sonatype.org/pages/ossrh-eol/ +# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic +# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#authenticating-to-github-packages +gpr.user="" +gpr.key=""