Skip to content

Use SBT Release Plugin (https://github.com/sbt/sbt-release). #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions project/Scoverage.scala
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import sbt.Keys._
import sbt._
import sbtrelease.ReleasePlugin
import sbtrelease.ReleasePlugin.ReleaseKeys
import com.typesafe.sbt.pgp.PgpKeys

object Scoverage extends Build {

val Org = "org.scoverage"
val Version = "1.0.5-SNAPSHOT"
val Scala = "2.11.4"
val MockitoVersion = "1.9.5"
val ScalatestVersion = "2.2.2"

lazy val LocalTest = config("local") extend Test

val appSettings = Seq(
version := Version,
organization := Org,
scalaVersion := Scala,
crossScalaVersions := Seq("2.10.4", "2.11.4"),
Expand Down Expand Up @@ -60,6 +61,9 @@ object Scoverage extends Build {
pomIncludeRepository := {
_ => false
}
) ++ ReleasePlugin.releaseSettings ++ Seq(
ReleaseKeys.crossBuild := true,
ReleaseKeys.publishArtifactsAction := PgpKeys.publishSigned.value
)

lazy val root = Project("scalac-scoverage", file("."))
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ resolvers += Classpaths.sbtPluginReleases

addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.3.2")

addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")

addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.5")
1 change: 1 addition & 0 deletions version.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version in ThisBuild := "1.0.5-SNAPSHOT"