-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
64 lines (57 loc) · 2.42 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
import sbt.Keys.{libraryDependencies, _}
// If you edit it then in sbt type 'reload' and 'update'
// scoverage
resolvers += Resolver.url("scoverage-bintray", url("https://dl.bintray.com/sksamual/sbt-plugins/"))(Resolver.ivyStylePatterns)
// Multi project build file. For val xxx = project, xxx is the name of the project and base dir
lazy val commonSettings = Seq(
organization := "org.sackfix",
version := "0.1.3",
scalaVersion := "2.13.5",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.6" % "test",
libraryDependencies += "com.typesafe" % "config" % "1.4.1",
// coverageEnabled := true
// Configuring publish to Sonartype, http://www.scala-sbt.org/release/docs/Using-Sonatype.html
// ie at https://github.com/sbt/sbt-pgp#sbt-pgp
// useGpg := true,
pomIncludeRepository := { _ => false },
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php")),
homepage := Some(url("http://www.sackfix.org/")),
developers := List(
Developer(id = "PendaRed",
name = "Jonathan Gibbons",
email = "Jonathan@sackfix.org",
url = url("http://www.sackfix.org"))
),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false
)
lazy val sackfixcommon = (project in file("./sackfix-common")).
settings(commonSettings: _*).
settings(
name := "sackfix-common",
// Configuring publish to Sonartype, http://www.scala-sbt.org/release/docs/Using-Sonatype.html
description :="Common Fix fields, traits and utilities required by every part of SackFix",
scmInfo := Some(
ScmInfo(
url("https://github.com/PendaRed/sackfix.git"),
"scm:git@github.com:PendaRed/sackfix.git"
)
)
)
lazy val sackfixcodegen = (project in file("./sackfix-codegen")).
dependsOn(sackfixcommon).
settings(commonSettings: _*).
settings(
name := "sackfix-codegen",
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.3.0",
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",
libraryDependencies += "org.scala-lang.modules" %% "scala-swing" % "3.0.0"
)
val sackfix = (project in file(".")).aggregate(sackfixcommon, sackfixcodegen)