Skip to content

Commit

Permalink
Try storing creds in separate command
Browse files Browse the repository at this point in the history
  • Loading branch information
bpitman committed Jul 15, 2015
1 parent 51545e0 commit c4b31f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ build:

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

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

coverage:
$(SBT) clean coverage test coverageReport
Expand Down
2 changes: 0 additions & 2 deletions project/Bintray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ object Bintray {
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}/")
},
*/

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

0 comments on commit c4b31f3

Please sign in to comment.