-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
62 lines (57 loc) · 2.23 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
import Dependencies.*
import xerial.sbt.Sonatype.*
lazy val commonSettings = Seq(
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")),
organization := "io.github.seblm",
publishTo := sonatypePublishToBundle.value,
scalacOptions += "-deprecation",
sonatypeProjectHosting :=
Some(GitHubHosting("seblm", "sbt-jgiven-scalatest-reporter", "[email protected]")),
version := "1.0.4-SNAPSHOT"
)
lazy val `sbt-jgiven-scalatest-reporter` = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
commonSettings,
scalaVersion := "2.12.20",
libraryDependencies += `sbt-`,
libraryDependencies += `sbt-actions`,
libraryDependencies += `sbt-collections`,
libraryDependencies += `sbt-core-macros`,
libraryDependencies += `sbt-librarymanagement-core`,
libraryDependencies += `sbt-main`,
libraryDependencies += `sbt-main-settings`,
libraryDependencies += `sbt-task-system`,
libraryDependencies += `sbt-testing`,
libraryDependencies += `sbt-util-position`,
scriptedLaunchOpts := { scriptedLaunchOpts.value ++ Seq("-Dplugin.version=" + version.value) },
scriptedBufferLog := false
)
.aggregate(`jgiven-scalatest-reporter`, `json-scalatest-reporter`)
lazy val `jgiven-scalatest-reporter` = project
.settings(
commonSettings,
scalaVersion := "2.13.15",
libraryDependencies += `jgiven-core`,
libraryDependencies += `jgiven-html5-report`,
libraryDependencies += `log4j-slf4j-impl`,
libraryDependencies += `scalatest-core`,
libraryDependencies += `scalatest-featurespec`,
libraryDependencies += `scalatest-shouldmatchers`,
libraryDependencies += `scalatest-wordspec`,
Test / parallelExecution := false
)
.dependsOn(`json-scalatest-reporter` % Test)
lazy val `json-scalatest-reporter` = project
.settings(
commonSettings,
scalaVersion := "2.13.15",
libraryDependencies += gson,
libraryDependencies += `log4j-slf4j-impl`,
libraryDependencies += `scalatest-core`,
libraryDependencies += `scalatest-flatspec`,
libraryDependencies += `scalatest-shouldmatchers`,
libraryDependencies += `slf4j-api`,
Test / parallelExecution := false
)
console / initialCommands := "import io.github.seblm.scalatest.jgiven._"