From b2ce2c46dd491a4b4a36f2e565c931d58f3672f0 Mon Sep 17 00:00:00 2001 From: gewuyou Date: Fri, 9 May 2025 18:00:34 +0800 Subject: [PATCH] build(env): Updated the Gitea repository environment variable reference - Change the "GEWUYOU_GITEA_HOST" environment variable to "GITEA_HOST" - change "GEWUYOU_GITEA_TOKEN" environment variable to "GITEA_TOKEN" --- build.gradle.kts | 4 ++-- config/repositories.gradle.kts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 549163e..1f4efe2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -105,7 +105,7 @@ subprojects { } } // Gitea 仓库 - val host = System.getenv("GEWUYOU_GITEA_HOST") + val host = System.getenv("GITEA_HOST") host?.let { maven { isAllowInsecureProtocol = true @@ -113,7 +113,7 @@ subprojects { url = uri("http://${it}/api/packages/gewuyou/maven") credentials(HttpHeaderCredentials::class.java) { name = "Authorization" - value = "token ${System.getenv("GEWUYOU_GITEA_TOKEN")}" + value = "token ${System.getenv("GITEA_TOKEN")}" } authentication { create("header", HttpHeaderAuthentication::class.java) diff --git a/config/repositories.gradle.kts b/config/repositories.gradle.kts index 7bac304..ff8d688 100644 --- a/config/repositories.gradle.kts +++ b/config/repositories.gradle.kts @@ -1,7 +1,7 @@ // This file is used to define the repositories used by the project. repositories { mavenLocal() - val host = System.getenv("GEWUYOU_GITEA_HOST") + val host = System.getenv("GITEA_HOST") host?.let { maven{ url = uri("http://${host}/api/packages/gewuyou/maven")