From 71e96905ef7ea47f0b65c78c1a9ac5e2bdabd04d Mon Sep 17 00:00:00 2001 From: Thiakil Date: Sat, 15 Jul 2023 10:42:21 +0800 Subject: [PATCH] fix maven upload --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 334a2b14f13..022474b2757 100644 --- a/build.gradle +++ b/build.gradle @@ -598,6 +598,7 @@ tasks.withType(GenerateModuleMetadata).configureEach { //properties to put in $HOME/.gradle/gradle.properties def MAVEN_PASSWORD_PROPERTY_NAME = 'mekanismMavenPassword' +def MODMAVEN_PW = System.getenv('MEK_MAVEN_PW') ?: (String)project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME) publishing { publications { PublicationContainer publicationContainer -> @@ -652,10 +653,10 @@ publishing { repositories { maven { url = 'https://modmaven.dev/artifactory/local-releases/' - if (project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME) != null) { + if (MODMAVEN_PW != null) { credentials { username = "mekanism" - password = project.findProperty(MAVEN_PASSWORD_PROPERTY_NAME) + password = MODMAVEN_PW } } }