forked from ShellRechargeSolutionsEU/ocpp-soap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
74 lines (62 loc) · 2.56 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
val dispatchV = "0.11.3"
val sprayV = "1.3.4"
val specs2V = "3.9.5"
val slf4jV = "1.7.25"
val slf4jApi = "org.slf4j" % "slf4j-api" % slf4jV
val slf4jSimple = "org.slf4j" % "slf4j-simple" % slf4jV
val dispatch = "net.databinder.dispatch" %% "dispatch-core" % dispatchV
val scalax = "com.github.t3hnar" %% "scalax" % "3.0"
val sprayHttp = "io.spray" %% "spray-http" % sprayV
val sprayHttpX = "io.spray" %% "spray-httpx" % sprayV
val akka = "com.typesafe.akka" %% "akka-actor" % "2.3.16" % "provided"
val specs2 = "org.specs2" %% "specs2-core" % specs2V % "it,test"
val specs2Mock = "org.specs2" %% "specs2-mock" % specs2V % "test"
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.0.4"
val scalaParser = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4"
val enumUtils = "com.thenewmotion" %% "enum-utils" % "0.2.1"
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.13.5" % "test"
val specs2ScalaCheck = "org.specs2" %% "specs2-scalacheck" % specs2V % "test"
val ocppMessages = "com.thenewmotion.ocpp" %% "ocpp-messages" % "8.0.0"
def module(name: String) = Project(name, file(name))
.enablePlugins(OssLibPlugin)
.configs(IntegrationTest)
.settings(
crossScalaVersions := Seq(tnm.ScalaVersion.prev),
scalaVersion := tnm.ScalaVersion.prev,
organization := "com.thenewmotion.ocpp",
libraryDependencies ++= Seq(ocppMessages, specs2),
Defaults.itSettings
)
def scalaxbModule(name: String, packageNameForGeneratedCode: String) =
module(name)
.enablePlugins(ScalaxbPlugin)
.settings(
scalacOptions -="-Ywarn-unused-import",
libraryDependencies ++= Seq(
scalaXml,
scalaParser,
dispatch
),
scalaxbDispatchVersion in (Compile, scalaxb) := dispatchV,
scalaxbPackageName in (Compile, scalaxb) := packageNameForGeneratedCode,
// please give us good old synchronous HTTP clients for now
scalaxbAsync in scalaxb in Compile := false,
coverageExcludedPackages := ".*"
)
val ocpp12Soap = scalaxbModule("ocpp-12", "com.thenewmotion.ocpp.v12")
val ocpp15Soap = scalaxbModule("ocpp-15", "com.thenewmotion.ocpp.v15")
val ocppSoap = module("ocpp-soap")
.dependsOn(ocpp12Soap, ocpp15Soap)
.settings(
scalacOptions -= "-Ywarn-value-discard",
libraryDependencies ++= Seq(
slf4jApi, scalax, specs2Mock))
val ocppSpray = module("ocpp-spray")
.dependsOn(ocppSoap)
.settings(
libraryDependencies ++= Seq(
sprayHttp, sprayHttpX, akka, specs2Mock))
enablePlugins(OssLibPlugin)
crossScalaVersions := Seq(tnm.ScalaVersion.prev)
scalaVersion := tnm.ScalaVersion.prev
publish := {}