mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
Test push again
This commit is contained in:
parent
c9e6e3d45d
commit
ed3aaa5692
22
build.gradle
22
build.gradle
@ -85,18 +85,6 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
plexSnapshots(MavenPublication) {
|
|
||||||
from(components.java)
|
|
||||||
repositories {
|
|
||||||
maven {
|
|
||||||
url("https://nexus.telesphoreo.me/repository/plex-snapshots/")
|
|
||||||
credentials {
|
|
||||||
username = System.getenv("plex_repo_user")
|
|
||||||
password = System.getenv("plex_repo_pass")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,11 +96,7 @@ tasks {
|
|||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
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) {
|
||||||
if (getVersion().toString().toLowerCase().endsWith("-snapshot")) {
|
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
||||||
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
|
||||||
} else {
|
|
||||||
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +108,3 @@ tasks {
|
|||||||
task publishRelease {
|
task publishRelease {
|
||||||
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
||||||
}
|
}
|
||||||
|
|
||||||
task publishSnapshot {
|
|
||||||
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user