mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
try this x2
This commit is contained in:
parent
751ccc003b
commit
77967c39f9
@ -67,7 +67,6 @@ 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")
|
||||||
@ -76,12 +75,10 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
plexSnapshots(MavenPublication) {
|
plexSnapshots(MavenPublication) {
|
||||||
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")
|
||||||
@ -91,7 +88,6 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
@ -101,10 +97,12 @@ tasks.withType(JavaCompile) {
|
|||||||
tasks {
|
tasks {
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
|
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||||
if (getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
if (getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
||||||
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
javadoc {
|
javadoc {
|
||||||
options.memberLevel = JavadocMemberLevel.PRIVATE
|
options.memberLevel = JavadocMemberLevel.PRIVATE
|
||||||
|
Loading…
Reference in New Issue
Block a user