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")