make it work for macs

This commit is contained in:
Telesphoreo 2022-02-21 19:32:11 -06:00
parent e446002567
commit 52111e5d8d

View File

@ -81,15 +81,15 @@ tasks {
} }
task snapshotPublish { task snapshotPublish {
if (System.getenv("plex-repo-user") != null && System.getenv("plex-repo-pass") != null) { if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
System.out.println("Publishing") System.out.println("Publishing")
publishing { publishing {
repositories { repositories {
maven { maven {
url = "https://nexus.telesphoreo.me/repository/plex-snapshots/" url = "https://nexus.telesphoreo.me/repository/plex-snapshots/"
credentials { credentials {
username = System.getenv("plex-repo-user") username = System.getenv("plex_repo_user")
password = System.getenv("plex-repo-pass") password = System.getenv("plex_repo_pass")
} }
} }
} }
@ -99,15 +99,15 @@ task snapshotPublish {
} }
task releasePublish { task releasePublish {
if (System.getenv("plex-repo-user") != null && System.getenv("plex-repo-pass") != null) { if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
System.out.println("Publishing") System.out.println("Publishing")
publishing { publishing {
repositories { repositories {
maven { maven {
url = "https://nexus.telesphoreo.me/repository/plex-releases/" url = "https://nexus.telesphoreo.me/repository/plex-releases/"
credentials { credentials {
username = System.getenv("plex-repo-user") username = System.getenv("plex_repo_user")
password = System.getenv("plex-repo-pass") password = System.getenv("plex_repo_pass")
} }
} }
} }