forked from mybatis/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.scala
38 lines (30 loc) · 1019 Bytes
/
Build.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Defaults.defaultSettings ++ Seq (
organization := "org.mybatis.scala",
version := "1.0.2",
scalaVersion := "2.10.3"
)
val mybatisVersion = "3.2.4"
}
object Resolvers {
val sonatypeSnapshots = "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
val sonatype = "Sonatype OSS releases" at "http://oss.sonatype.org/content/repositories/releases"
}
object Dependencies {
val mybatis = "org.mybatis" % "mybatis" % BuildSettings.mybatisVersion
val scalatest = "org.scalatest" %% "scalatest" % "1.9.1" % "test"
}
object MainBuild extends Build {
import BuildSettings._
import Resolvers._
import Dependencies._
val coreDeps = Seq(mybatis, scalatest)
val coreResolvers = Seq(sonatypeSnapshots, sonatype)
lazy val core = Project(
"mybatis-scala-core",
file("."),
settings = buildSettings ++ Seq(resolvers := coreResolvers, libraryDependencies ++= coreDeps)
)
}