Skip to content

Commit

Permalink
Support for release builds
Browse files Browse the repository at this point in the history
Signed-off-by: eronwright <[email protected]>
  • Loading branch information
EronWright committed Oct 29, 2019
1 parent 1a4bae7 commit 3c272f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ subprojects {
contextUrl = publishUrl
publish {
repository {
repoKey = publishRepo
if (publishRepo?.trim()) {
repoKey = publishRepo
}
else if ("https://oss.jfrog.org" == "$publishUrl") {
repoKey = project.version.endsWith("-SNAPSHOT") ? "oss-snapshot-local" : "oss-release-local"
}
username = publishUsername
password = publishPassword
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mockitoVersion=2.23.0
publishUsername=
publishPassword=
publishUrl=https://oss.jfrog.org
publishRepo=oss-snapshot-local
publishRepo=
bintrayOrgName=pravega
bintrayRepoName=pravega

Expand Down

0 comments on commit 3c272f8

Please sign in to comment.