diff --git a/build.gradle b/build.gradle index 8ff55e1..7c3744e 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,8 @@ plugins { id "org.jetbrains.kotlin.jvm" version "1.9.+" } +def ENV = System.getenv() + version = mod_version group = maven_group @@ -55,15 +57,16 @@ publishing { } } - def ENV = System.getenv() repositories { - maven { - url = "https://maven.andante.dev/releases/" - if (ENV.MAVEN_USERNAME) { - credentials { - username ENV.MAVEN_USERNAME - password ENV.MAVEN_PASSWORD - } + // Andante's Maven + def mavenUsername = ENV["MAVEN_USERNAME_ANDANTE"] + def mavenPassword = ENV["MAVEN_PASSWORD_ANDANTE"] + if (mavenUsername && mavenPassword) { + maven { + name = "Andante" + url = "https://maven.andante.dev/releases/" + credentials.username = mavenUsername + credentials.password = mavenPassword } } } diff --git a/settings.gradle b/settings.gradle index 61aa429..5398d53 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,8 +1,8 @@ pluginManagement { repositories { maven { - name = 'Fabric' - url = 'https://maven.fabricmc.net/' + name = "Fabric" + url = "https://maven.fabricmc.net/" } mavenCentral() gradlePluginPortal()