mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27:37 +00:00
- Add gradle tasks to publish to nexus repository
This commit is contained in:
parent
93fa38d9da
commit
ae61503df4
38
build.gradle
38
build.gradle
@ -36,7 +36,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'dev.plex'
|
group = 'dev.plex'
|
||||||
version = '1.0 Beta 4'
|
version = '0.4-SNAPSHOT'
|
||||||
description = 'Plex'
|
description = 'Plex'
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
@ -79,3 +79,39 @@ tasks {
|
|||||||
options.memberLevel = JavadocMemberLevel.PRIVATE
|
options.memberLevel = JavadocMemberLevel.PRIVATE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user