From 77967c39f9df9255cc8aa24664ce5c05423c0f24 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Tue, 22 Feb 2022 00:40:31 -0600 Subject: [PATCH] try this x2 --- build.gradle | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index 9746e3b..20bdc6f 100644 --- a/build.gradle +++ b/build.gradle @@ -67,12 +67,10 @@ publishing { from(components.java) repositories { maven { - if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { - uri("https://nexus.telesphoreo.me/repository/plex-releases/") - credentials { - username = System.getenv("plex_repo_user") - password = System.getenv("plex_repo_pass") - } + uri("https://nexus.telesphoreo.me/repository/plex-releases/") + credentials { + username = System.getenv("plex_repo_user") + password = System.getenv("plex_repo_pass") } } } @@ -81,12 +79,10 @@ publishing { from(components.java) repositories { maven { - if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { - uri("https://nexus.telesphoreo.me/repository/plex-snapshots/") - credentials { - username = System.getenv("plex_repo_user") - password = System.getenv("plex_repo_pass") - } + uri("https://nexus.telesphoreo.me/repository/plex-snapshots/") + credentials { + username = System.getenv("plex_repo_user") + password = System.getenv("plex_repo_pass") } } } @@ -101,8 +97,10 @@ tasks.withType(JavaCompile) { tasks { build { dependsOn(shadowJar) - if (getVersion().toString().toLowerCase().endsWith("-snapshot")) { - dependsOn(publishPlexSnapshotsPublicationToMaven2Repository) + if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { + if (getVersion().toString().toLowerCase().endsWith("-snapshot")) { + dependsOn(publishPlexSnapshotsPublicationToMaven2Repository) + } } }