From ceef4f1698ce16570327f670e1151fd88d9db1a1 Mon Sep 17 00:00:00 2001 From: Juan Pedro Moreno <4879373+juanpedromoreno@users.noreply.github.com> Date: Mon, 27 Apr 2020 20:10:03 +0200 Subject: [PATCH] Compile when Publish (#173) --- build.sbt | 5 +++++ project/plugins.sbt | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index ca61cc45..19cb197d 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,8 @@ +import com.jsuereth.sbtpgp.PgpKeys.publishSigned + +publishLocal := (publishLocal dependsOn compile).value +publishSigned := (publishSigned dependsOn compile).value + addCommandAlias("ci-test", "scalafmtCheckAll; scalafmtSbtCheck; test") addCommandAlias("ci-docs", "github; project-docs/mdoc; headerCreateAll") diff --git a/project/plugins.sbt b/project/plugins.sbt index c2d9942e..2ef287e2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,4 @@ -resolvers += Resolver.sonatypeRepo("snapshots") -addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.6.0-SNAPSHOT") +addSbtPlugin("org.scala-exercises" % "sbt-exercise" % "0.6.0") addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.1.5") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4")