From 9c060ee94e4e4cb3fabdc6fb582a1dcfdc7cb7ea Mon Sep 17 00:00:00 2001 From: Juan Pedro Moreno Date: Mon, 27 Apr 2020 19:52:38 +0200 Subject: [PATCH] Compile when Publish --- build.sbt | 5 +++++ project/plugins.sbt | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 763e398..4ade4d3 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 c2d9942..2ef287e 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")