-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (37 loc) · 1.44 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
lazy val generator = (project in file("modules/generator"))
.enablePlugins(ScalaxbPlugin)
.settings(
Seq(
version := "1.0",
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.12.8"),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-target:jvm-1.8"
),
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.1.1",
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1",
scalaxbGenerateDispatchClient in (Compile, scalaxb) := false,
scalaxbGenerateGigahorseClient in (Compile, scalaxb) := false,
scalaxbNamedAttributes in (Compile, scalaxb) := true,
scalaxbPackageName in (Compile, scalaxb) := "com.test.generated",
scalaxbGenerateRuntime in (Compile, scalaxb) := true,
mappings in (Compile, packageSrc) ++= { // publish generated sources
import Path._
val srcs = (managedSources in Compile).value
val sdirs = (managedSourceDirectories in Compile).value
val base = baseDirectory.value
(((srcs --- sdirs --- base) pair (relativeTo(sdirs) | relativeTo(base) | flat)) toSeq)
}
)
)
lazy val app = (project in file("modules/failingApp"))
.settings(
name := """app""",
scalaVersion := "2.12.8",
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % "1.1.1",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1",
)
)