try this x2

This commit is contained in:
Telesphoreo 2022-02-22 00:40:31 -06:00
parent 751ccc003b
commit 77967c39f9

View File

@ -67,12 +67,10 @@ publishing {
from(components.java) from(components.java)
repositories { repositories {
maven { maven {
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { uri("https://nexus.telesphoreo.me/repository/plex-releases/")
uri("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")
}
} }
} }
} }
@ -81,12 +79,10 @@ publishing {
from(components.java) from(components.java)
repositories { repositories {
maven { maven {
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) { uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
uri("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")
}
} }
} }
} }
@ -101,8 +97,10 @@ tasks.withType(JavaCompile) {
tasks { tasks {
build { build {
dependsOn(shadowJar) dependsOn(shadowJar)
if (getVersion().toString().toLowerCase().endsWith("-snapshot")) { if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository) if (getVersion().toString().toLowerCase().endsWith("-snapshot")) {
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
}
} }
} }