Skip to content

Commit

Permalink
Merge pull request #137 from bpitman/master
Browse files Browse the repository at this point in the history
Log publishTo
  • Loading branch information
bpitman committed Jul 15, 2015
2 parents 4104159 + 14236ed commit 654dac1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ endif

build:
echo "Starting build"
$(SBT) clean test checkLicenseHeaders
stty cols 5000
$(SBT) 'inspect tree clean' test checkLicenseHeaders

publish:
echo "Starting publish"
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish
$(SBT) 'inspect tree clean' test checkLicenseHeaders storeBintrayCredentials publish

release:
echo "Starting release"
$(SBT) clean test checkLicenseHeaders storeBintrayCredentials publish bintrayRelease
$(SBT) 'inspect tree clean' test checkLicenseHeaders storeBintrayCredentials publish bintrayRelease

coverage:
$(SBT) clean coverage test coverageReport
Expand Down
16 changes: 8 additions & 8 deletions project/Bintray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ object Bintray {
}
lazy val storeBintrayCredentials = taskKey[Unit]("store bintray credentials")

lazy val settings: Seq[Def.Setting[_]] = buildPublishSettings ++ Seq(
lazy val settings: Seq[Def.Setting[_]] = bintraySettings ++ Seq(
bintrayRepository := "maven",
bintrayPackage := "iep",
bintrayOrganization := Some("netflixoss"),
bintrayReleaseOnPublish := false,
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
credentials += Credentials("Artifactory Realm", "oss.jfrog.org", user, pass),

publishTo := {
if (isSnapshot.value)
Some("OJO" at s"https://oss.jfrog.org/oss-snapshot-local;build.timestamp=${now}/")
else
publishTo in bintray value
//Some("bintray" at s"https://api.bintray.com/${bintrayOrganization.value.get}/${bintrayRepository.value}/")
},
// publishTo := {
// if (isSnapshot.value)
// Some("OJO" at s"https://oss.jfrog.org/oss-snapshot-local;build.timestamp=${now}/")
// else
// publishTo in bintray value
// //Some("bintray" at s"https://api.bintray.com/${bintrayOrganization.value.get}/${bintrayRepository.value}/")
// },

storeBintrayCredentials := {
IO.write(bintrayCredentialsFile.value, api.template(user, pass))
Expand Down

0 comments on commit 654dac1

Please sign in to comment.