diff --git a/common/build.gradle b/common/build.gradle index 630a1a658..34dfe8db6 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -67,11 +67,7 @@ publishing { repositories { def isCI = System.getenv("CI") def isRELEASE = System.getenv("GITHUB_RELEASE") - if (isCI) { - maven { - url System.getenv("local_maven_url") - } - } else if (isRELEASE){ + if (isRELEASE){ maven { name = "GTMaven" url = "https://repo.repsy.io/mvn/trinsdar/gregtech-intergalactical/" @@ -80,6 +76,10 @@ publishing { password = System.getenv("MAVEN_PASSWORD") } } + } else if (isCI) { + maven { + url System.getenv("local_maven_url") + } } else { mavenLocal() } diff --git a/fabric/build.gradle b/fabric/build.gradle index da127f6ce..6fde29894 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -159,11 +159,7 @@ publishing { repositories { def isCI = System.getenv("CI") def isRELEASE = System.getenv("GITHUB_RELEASE") - if (isCI) { - maven { - url System.getenv("local_maven_url") - } - } else if (isRELEASE){ + if (isRELEASE){ maven { name = "GTMaven" url = "https://repo.repsy.io/mvn/trinsdar/gregtech-intergalactical/" @@ -172,6 +168,10 @@ publishing { password = System.getenv("MAVEN_PASSWORD") } } + } else if (isCI) { + maven { + url System.getenv("local_maven_url") + } } else { mavenLocal() } diff --git a/forge/build.gradle b/forge/build.gradle index 832079c1f..03cb62476 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -155,11 +155,7 @@ publishing { repositories { def isCI = System.getenv("CI") def isRELEASE = System.getenv("GITHUB_RELEASE") - if (isCI) { - maven { - url System.getenv("local_maven_url") - } - } else if (isRELEASE){ + if (isRELEASE){ maven { name = "GTMaven" url = "https://repo.repsy.io/mvn/trinsdar/gregtech-intergalactical/" @@ -168,6 +164,10 @@ publishing { password = System.getenv("MAVEN_PASSWORD") } } + } else if (isCI) { + maven { + url System.getenv("local_maven_url") + } } else { mavenLocal() }