forked from eigengo/specs2-spring
/
build.sbt
110 lines (87 loc) · 3.75 KB
/
build.sbt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import sbtrelease._
/** Project */
name := "spring"
version := "1.0.1-SNAPSHOT"
organization := "org.specs2"
scalaVersion := "2.10.1"
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + "> " }
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
/** Dependencies */
resolvers ++= Seq("snapshots-repo" at "http://scala-tools.org/repo-snapshots")
libraryDependencies ++= Seq(
"org.specs2" %% "specs2" % "1.14",
"org.mockito" % "mockito-all" % "1.9.5",
"org.springframework" % "spring-core" % "3.2.2.RELEASE",
"org.springframework" % "spring-beans" % "3.2.2.RELEASE",
"org.springframework" % "spring-jdbc" % "3.2.2.RELEASE",
"org.springframework" % "spring-tx" % "3.2.2.RELEASE",
"org.springframework" % "spring-test" % "3.2.2.RELEASE",
"org.springframework" % "spring-test" % "3.2.2.RELEASE",
"org.springframework" % "spring-orm" % "3.2.2.RELEASE" % "provided",
"org.springframework" % "spring-web" % "3.2.2.RELEASE" % "provided",
"org.springframework" % "spring-webmvc" % "3.2.2.RELEASE" % "provided",
"org.springframework" % "spring-aspects" % "3.2.2.RELEASE" % "provided",
"org.springframework" % "spring-instrument" % "3.2.2.RELEASE" % "test->runtime",
"junit" % "junit" % "4.7" % "optional",
"org.hsqldb" % "hsqldb" % "2.2.4" % "provided",
"org.hibernate" % "hibernate-core" % "4.0.1.Final" % "provided",
"javax.persistence" % "persistence-api" % "1.0" % "provided",
"org.aspectj" % "aspectjweaver" % "1.6.12" % "test->runtime",
"javax.mail" % "mail" % "1.4.1" % "provided",
"javax.transaction" % "jta" % "1.1" % "provided",
"com.atomikos" % "transactions-jta" % "3.7.0" % "provided",
"com.atomikos" % "transactions-jdbc" % "3.7.0" % "provided",
"org.apache.activemq" % "activemq-core" % "5.4.1" % "provided"
)
/** Compilation */
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
javaOptions += "-Xmx2G -XX:MaxPermSize=1024m"
scalacOptions ++= Seq("-deprecation", "-unchecked")
maxErrors := 20
pollInterval := 1000
logBuffered := false
cancelable := true
credentials += Credentials(Path.userHome / ".sonatype")
testOptions := Seq(Tests.Filter(s =>
Seq("Spec", "Suite", "Unit", "all").exists(s.endsWith(_)) &&
!s.endsWith("FeaturesSpec") ||
s.contains("UserGuide") ||
s.contains("index") ||
s.matches("org.specs2.guide.*")))
/** Console */
initialCommands in console := "import org.specs2.spring._"
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>http://www.eigengo.com/</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:eigengo/specs2-spring.git</url>
<connection>scm:git:git@github.com:eigengo/specs2-spring.git</connection>
</scm>
<developers>
<developer>
<id>janmachacek</id>
<name>Jan Machacek</name>
<url>http://www.eigengo.com</url>
</developer>
<developer>
<id>anirvanchakraborty</id>
<name>Anirvan Chakraborty</name>
<url>http://www.eigengo.com</url>
</developer>
</developers>
)