Skip to content

Commit

Permalink
Snapshot publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrodgers committed Jan 21, 2016
1 parent 8a75e37 commit cb22e30
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.sbt
Expand Up @@ -70,3 +70,19 @@ git.remoteRepo := "git@github.com:MonsantoCo/cloudformation-template-generator.g
bintrayOrganization := Some("monsanto")

licenses += ("BSD", url("http://opensource.org/licenses/BSD-3-Clause"))

bintrayReleaseOnPublish := ! isSnapshot.value

publishTo := {
if (isSnapshot.value)
Some("Artifactory Realm" at "https://oss.jfrog.org/oss-snapshot-local/")
else
publishTo.value /* Value set by bintray-sbt plugin */
}

credentials := {
if (isSnapshot.value)
List(Path.userHome / ".bintray" / ".artifactory").filter(_.exists).map(Credentials(_))
else
credentials.value /* Value set by bintray-sbt plugin */
}

0 comments on commit cb22e30

Please sign in to comment.