From d601aa0bfdcc3bc64732809d12df36a3364d21c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Fri, 13 Apr 2018 19:58:12 +0300 Subject: [PATCH] Publish to bintray --- .travis.yml | 15 +++++++++++++++ build.sbt | 9 +++++++++ project/plugins.sbt | 1 + 3 files changed, 25 insertions(+) diff --git a/.travis.yml b/.travis.yml index b4f575b..85da302 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,14 @@ scala: 2.12.5 jdk: oraclejdk8 +jobs: + include: + - stage: test + script: sbt test + - stage: deploy + script: sbt publish + if: repo = 2m/kabrioletas + before_cache: - find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete - find $HOME/.sbt -name "*.lock" -print -delete @@ -12,3 +20,10 @@ cache: directories: - $HOME/.ivy2/cache - $HOME/.sbt/boot + +env: + global: + # travis encrypt BINTRAY_USER=... + - secure: "p+UrSGw9u/4l8I3l3Fm9RkyzhxDA9dryr1PGby2rgnf3YSkrwBLIz8DWoxm9plfHeF/rBZA/p8PKlTSrWctIorjqYSmyTILwoqAiYWR0eoIyywEdQmnz6ZsxOCahAE825GlquhCSV2Hnc86BdAyabnBsYsGh7I8kEGZzkpEemghdaFnlVR/xeicpzBbqNHMJhT85Hj5fVF54ws+EiTD2YjlNl/cUFNwzUvHX4mVeEhUENH9XCqyMlI8gNoulBNhXKAv+qZ77A9lEW7/2ZXb6TGspyKCdSIDyR628c1i7J8QAxECyCe8r1L0XhNKWbW4O24ZDmLva3kTJ7rLFW9Uhr/Nbf+NDEa7pU2UFkjiagkFIu+7oiPgHbd/BZUOqntWrMxJ7BmDc+TulhEiHapsO4ISpZEmvZKixF69oV2YZfuiXVPq6/lIJe7yYQUJXBB6Wbnn9cbLjRDFIM8DXzaQvQaxPfhDC87ZeQbqtePEbUkGkBqI3Xy4JVHTlXCWSfPn35b4gYgBQI0VZHzje6C3pPPvK8Cc0wK7zGOA76HPaeMwwMYbEqa17+IekUNv4kJMoQ8cd8rQubMYYZ6qdunUsG4MPBG/5L12N6vIla3tWXhDJcl/bMa7DMOJ6GSV0nS1BBxnYNAsLkLOY6wcJFfAYntydIgZRHY4PMWFhPGZtcsg=" + # travis encrypt BINTRAY_PASS=... + - secure: "lVQ5Ual2qiV0/wduglHupQh9FyvhJ4mYZIXfc7JRaz6biXOhuZF1iSd/RKBGj8NVN+8QlILkAlYKspYeZD7FMRlCLiqBQd+ag3eeXMxM9ITxEf2okPmUcXfWNZ5VI62JPAWAxgf4AJn3CZ1kbhu/KQGR7ba5/SoNvopB2WDNTk4bLZ6xIkBarqv/Dcd+0+BYwH3qRAi+SdftxdMLsh18TRQt4lDsb9vXO5ol6hLX8oCDYDM/AP7Z8xoemhp3ty4i19Oc4DW6u9APzcAuV873qUdVqE1RX0BfHStpHjVE5U8KLh7QFWlVhWT/6Hgv/d903mjJMciHM72GaqXOsh1pV2n4b+N1C/YPs/le9+e7CcuPxujgN6MEuCmc3nnYRM2foIff63vHJKzshl4cMihAy2Xgre0S/KvnupFVH5BYghubkdetMYNHBogvwLsNgsv/D/Z+40VwdoJB8ZgFRYzq2EEfyT5pkRA4kEIRj9Ui1NbtGSWunkRy6voG0GjLS5mTK+3ZNMok2rhVrCy6s9CttJSxYBFaKV3lDJ76D9mIAufJqf9QS262Y4lj8iCFKi9UU5QQC9cc9lWk9vC/kPNEvhE1F1j7Szd7IowMvIh+PXByIipxYbppl2HxDLrW5fxy6jX4ueQIVA4Z6gVi19VZUpR+Oia+k2SpvsF/JK1j+68=" diff --git a/build.sbt b/build.sbt index 569080d..54e1670 100644 --- a/build.sbt +++ b/build.sbt @@ -33,6 +33,15 @@ libraryDependencies ++= Seq( licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")) startYear := Some(2017) +homepage := Some(url("https://github.com/2m/kabrioletas")) +scmInfo := Some(ScmInfo(url("https://github.com/2m/kabrioletas"), "git@github.com:2m/kabrioletas.git")) +developers += Developer("contributors", + "Contributors", + "https://gitter.im/2m/kabrioletas", + url("https://github.com/2m/kabrioletas/graphs/contributors")) +bintrayOrganization := Some("2m") +bintrayRepository := (if (isSnapshot.value) "snapshots" else "maven") +organizationName := "https://github.com/2m/kabrioletas/graphs/contributors" scalafmtOnCompile := true diff --git a/project/plugins.sbt b/project/plugins.sbt index 475fd16..4754a97 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -4,3 +4,4 @@ addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.4.0") addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0") addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.4") addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.18") +addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")