Skip to content

Commit 0878f5d

Browse files
author
rschatz
committed
switching to suggested build.sbt layout
1 parent 2cbce44 commit 0878f5d

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

build.sbt

+21-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
import bintray.Keys._
22

3-
sbtPlugin := true
4-
5-
organization := "me.rschatz"
6-
7-
name := "npt"
8-
9-
version := "0.1.0"
10-
11-
scalaVersion := "2.10.4"
12-
13-
publishMavenStyle := false
14-
15-
seq(bintrayPublishSettings:_*)
16-
17-
repository in bintray := "sbt-plugins"
18-
19-
// This is an example. bintray-sbt requires licenses to be specified
20-
// (using a canonical name).
21-
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
22-
23-
bintrayOrganization in bintray := None
24-
25-
libraryDependencies += "org.scalatest" %% "scalatest" % "2.1.0" % "test"
26-
27-
libraryDependencies += "org.mockito" % "mockito-core" % "1.9.5" % "test"
3+
lazy val commonSettings = Seq(
4+
version in ThisBuild := "0.2.0",
5+
organization in ThisBuild := "me.rschatz",
6+
libraryDependencies in ThisBuild ++= Seq(
7+
"ch.qos.logback" % "logback-classic" % "1.1.3",
8+
"org.scalatest" %% "scalatest" % "2.2.5" % "test",
9+
"org.mockito" % "mockito-core" % "1.10.19" % "test"
10+
)
11+
)
12+
13+
lazy val root = (project in file(".")).
14+
settings(commonSettings ++ bintrayPublishSettings: _*).
15+
settings(
16+
sbtPlugin := true,
17+
name := "npt",
18+
description := "Create new project layouts which can be based on templates",
19+
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
20+
publishMavenStyle := false,
21+
repository in bintray := "sbt-plugins",
22+
bintrayOrganization in bintray := None
23+
)

0 commit comments

Comments
 (0)