This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
85 lines (80 loc) · 2.27 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
import Dependencies._
import Publishing._
lazy val theOrganization = "com.folio-sec"
lazy val baseSettings = Seq(
organization := theOrganization,
scalacOptions ++= theScalaOptions,
incOptions := xsbti.compile.IncOptions.of(),
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier),
pomIncludeRepository := (_ => false),
scalafmtOnCompile := true,
fork in Test := true,
pomExtra := thePomExtra,
publishTo := doPublishTo(version.value)
)
lazy val reladomoScalaCommon = (project in file("reladomo-scala-common"))
.disablePlugins(ScriptedPlugin)
.settings(baseSettings)
.settings(
name := "reladomo-scala-common",
scalaVersion := latestScalaVersion,
crossScalaVersions := Seq(latestScalaVersion, "2.11.12"),
sbtPlugin := false,
libraryDependencies ++= Seq(
reladomo,
slf4jApi,
jodaTime,
jodaConvert,
scalikejdbc,
h2,
logbackClassic,
scalaTest
),
// env variables for unit tests
envVars in Test := Map("RELADOMO_SCALA_SIMPLE_BANK_PASSWORD" -> "pass")
)
.settings(MimaSettings.mimaSettings)
lazy val reladomoScalaTwitterCommon = (project in file("reladomo-scala-twitter-common"))
.disablePlugins(ScriptedPlugin)
.settings(baseSettings)
.settings(
normalizedName := s"reladomo-scala-twitter-${twitterUtilBinVersion}-common",
scalaVersion := latestScalaVersion,
crossScalaVersions := Seq(latestScalaVersion, "2.11.12"),
sbtPlugin := false,
libraryDependencies ++= Seq(
twitterUtilCore,
scalikejdbc,
h2,
logbackClassic,
scalaTest
)
)
.dependsOn(reladomoScalaCommon)
.settings(MimaSettings.mimaSettings)
lazy val sbtReladomoPlugin = (project in file("sbt-reladomo-plugin"))
.settings(baseSettings)
.settings(
name := "sbt-reladomo-plugin",
crossSbtVersions := Vector("0.13.17", "1.1.6"),
sbtPlugin := true,
libraryDependencies ++= Seq(
ant,
reladomo,
slf4jApi,
jodaTime,
jodaConvert,
reladomogen,
reladomogenUtil,
scalaTest
),
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq(
"-Xmx1024M",
"-Dplugin.version=" + version.value,
"-DreladomoScalaCommonVersion=" + version.value
)
},
scriptedBufferLog := false
)