-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
80 lines (75 loc) · 2.82 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
val ScalaVersion = "2.12.20"
lazy val authors = project
.in(file("."))
.settings(sonatypeProfileName := "lt.dvim")
.aggregate(core, plugin, cli)
lazy val core = project
.settings(
name := "authors-core",
scalaVersion := ScalaVersion, {
val Akka = "2.6.20"
val AkkaHttp = "10.2.10"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % Akka,
"com.typesafe.akka" %% "akka-stream" % Akka,
"com.typesafe.akka" %% "akka-slf4j" % Akka,
"com.typesafe.akka" %% "akka-http" % AkkaHttp,
"com.madgag.scala-git" %% "scala-git" % "4.2",
"ch.qos.logback" % "logback-classic" % "1.5.12",
"org.mdedetrich" %% "akka-stream-circe" % "0.9.0",
"com.lightbend.akka" %% "akka-stream-alpakka-json-streaming" % "3.0.4",
"io.circe" %% "circe-generic" % "0.14.10",
"io.circe" %% "circe-generic-extras" % "0.14.4",
"org.scalatest" %% "scalatest" % "3.2.19" % "test",
"com.typesafe.akka" %% "akka-testkit" % Akka % "test"
)
},
addCompilerPlugin(
"org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full
)
)
.enablePlugins(AutomateHeaderPlugin)
lazy val plugin = project
.dependsOn(core)
.enablePlugins(SbtPlugin, AutomateHeaderPlugin)
.settings(
name := "sbt-authors",
scriptedLaunchOpts += "-Dproject.version=" + version.value,
scriptedDependencies := {
val p1 = (core / publishLocal).value
val p2 = publishLocal.value
},
scriptedBufferLog := false
)
lazy val cli = project
.dependsOn(core)
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "authors-cli",
scalaVersion := ScalaVersion,
libraryDependencies ++= Seq(
"org.rogach" %% "scallop" % "5.2.0"
)
)
inThisBuild(
Seq(
organization := "lt.dvim.authors",
organizationName := "Martynas Mickevičius",
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
startYear := Some(2016),
homepage := Some(url("https://github.com/2m/authors")),
scmInfo := Some(ScmInfo(url("https://github.com/2m/authors"), "[email protected]:2m/authors.git")),
developers += Developer(
"contributors",
"Contributors",
"https://gitter.im/2m/authors",
url("https://github.com/2m/authors/graphs/contributors")
),
scalafmtOnCompile := true,
scalafixDependencies ++= Seq(
"com.nequissimus" %% "sort-imports" % "0.6.1"
),
// show full stack traces and test case durations
Test / testOptions += Tests.Argument("-oDF")
)
)