mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
- Fix nexus publish tasks
This commit is contained in:
parent
52111e5d8d
commit
15d28cccf2
60
build.gradle
60
build.gradle
@ -63,6 +63,30 @@ publishing {
|
||||
maven(MavenPublication) {
|
||||
from(components.java)
|
||||
}
|
||||
plexReleases(MavenPublication) {
|
||||
from(components.java)
|
||||
repositories {
|
||||
maven {
|
||||
url("https://nexus.telesphoreo.me/repository/plex-releases/")
|
||||
credentials {
|
||||
username = System.getenv("plex_repo_user")
|
||||
password = System.getenv("plex_repo_pass")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,38 +104,10 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
task snapshotPublish {
|
||||
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||
System.out.println("Publishing")
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = "https://nexus.telesphoreo.me/repository/plex-snapshots/"
|
||||
credentials {
|
||||
username = System.getenv("plex_repo_user")
|
||||
password = System.getenv("plex_repo_pass")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
dependsOn(publish)
|
||||
}
|
||||
task publishRelease {
|
||||
dependsOn(publishPlexReleasesPublicationToMavenRepository)
|
||||
}
|
||||
|
||||
task releasePublish {
|
||||
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_pass") != null) {
|
||||
System.out.println("Publishing")
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = "https://nexus.telesphoreo.me/repository/plex-releases/"
|
||||
credentials {
|
||||
username = System.getenv("plex_repo_user")
|
||||
password = System.getenv("plex_repo_pass")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
dependsOn(publish)
|
||||
}
|
||||
task publishSnapshot {
|
||||
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
|
||||
}
|
Loading…
Reference in New Issue
Block a user