mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
Allow env to be null
This commit is contained in:
parent
455713db3c
commit
ab0666ebeb
23
build.gradle
23
build.gradle
@ -67,10 +67,12 @@ publishing {
|
|||||||
from(components.java)
|
from(components.java)
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url("https://nexus.telesphoreo.me/repository/plex-releases/")
|
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||||
credentials {
|
url("https://nexus.telesphoreo.me/repository/plex-releases/")
|
||||||
username = System.getenv("plex_repo_user")
|
credentials {
|
||||||
password = System.getenv("plex_repo_pass")
|
username = System.getenv("plex_repo_user")
|
||||||
|
password = System.getenv("plex_repo_pass")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,10 +81,12 @@ publishing {
|
|||||||
from(components.java)
|
from(components.java)
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url("https://nexus.telesphoreo.me/repository/plex-snapshots/")
|
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||||
credentials {
|
url("https://nexus.telesphoreo.me/repository/plex-snapshots/")
|
||||||
username = System.getenv("plex_repo_user")
|
credentials {
|
||||||
password = System.getenv("plex_repo_pass")
|
username = System.getenv("plex_repo_user")
|
||||||
|
password = System.getenv("plex_repo_pass")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,8 +101,7 @@ tasks.withType(JavaCompile) {
|
|||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
if (getVersion().toString().toLowerCase().endsWith("-snapshot"))
|
if (getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
||||||
{
|
|
||||||
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user