1
1
import sbt ._
2
2
import Keys ._
3
3
4
+ import Versions ._
5
+
4
6
object Settings {
5
7
val buildOrganization = " templemore"
6
- val buildScalaVersion = " 2.9.2 "
8
+ val buildScalaVersion = scala2_9
7
9
val buildVersion = " 0.7.2"
8
10
9
11
val buildSettings = Defaults .defaultSettings ++
@@ -16,9 +18,6 @@ object Settings {
16
18
17
19
object Dependencies {
18
20
19
- private val CucumberVersionForScala2_9 = " 1.0.9"
20
- private val CucumberVersionForScala2_10 = " 1.1.1"
21
-
22
21
def cucumberScala (scalaVersion : String ) = {
23
22
def cucumberVersion = if ( scalaVersion.startsWith(" 2.10" ) ) CucumberVersionForScala2_10 else CucumberVersionForScala2_9
24
23
" info.cukes" % " cucumber-scala" % cucumberVersion % " compile"
@@ -32,18 +31,27 @@ object Build extends Build {
32
31
import Dependencies ._
33
32
import Settings ._
34
33
34
+ private val crossVersions = Seq (scala2_9, scala2_10)
35
+
35
36
lazy val parentProject = Project (" sbt-cucumber-parent" , file (" ." ),
36
37
settings = buildSettings ++
37
- Seq (crossScalaVersions := Seq ( " 2.9.2 " , " 2.10.0-RC2 " ) )) aggregate (pluginProject, integrationProject)
38
+ Seq (crossScalaVersions := crossVersions )) aggregate (pluginProject, integrationProject)
38
39
39
40
lazy val pluginProject = Project (" sbt-cucumber-plugin" , file (" plugin" ),
40
41
settings = buildSettings ++
41
42
Seq (sbtPlugin := true ))
42
43
43
44
lazy val integrationProject = Project (" sbt-cucumber-integration" , file (" integration" ),
44
45
settings = buildSettings ++
45
- Seq (crossScalaVersions := Seq ( " 2.9.2 " , " 2.10.0-RC2 " ) ,
46
+ Seq (crossScalaVersions := crossVersions ,
46
47
libraryDependencies <+= scalaVersion { sv => cucumberScala(sv) },
47
48
libraryDependencies += testInterface))
48
49
}
49
50
51
+
52
+ object Versions {
53
+ val scala2_9 = " 2.9.2"
54
+ val scala2_10 = " 2.10.0"
55
+ val CucumberVersionForScala2_9 = " 1.0.9"
56
+ val CucumberVersionForScala2_10 = " 1.1.1"
57
+ }
0 commit comments