forked from testcontainers/testcontainers-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (82 loc) · 3.05 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
81
82
83
84
85
86
87
88
89
import Dependencies._
import xerial.sbt.Sonatype._
import ReleaseTransformations._
val testcontainersVersion = "1.10.6"
val seleniumVersion = "2.53.1"
val slf4jVersion = "1.7.25"
val scalaTestVersion = "3.0.5"
val mysqlConnectorVersion = "5.1.42"
val postgresqlDriverVersion = "9.4.1212"
val mockitoVersion = "2.23.4"
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
lazy val root = (project in file("."))
.settings(
organization in ThisBuild := "com.dimafeng",
scalaVersion in ThisBuild := "2.12.8",
crossScalaVersions := Seq("2.11.11", "2.12.8"),
name := "testcontainers-scala",
compileScalastyle := scalastyle.in(Compile).toTask("").value,
test in Test := (test in Test).dependsOn(compileScalastyle in Compile).value,
/**
* Dependencies
*/
libraryDependencies ++=
COMPILE(
"org.testcontainers" % "testcontainers" % testcontainersVersion
)
++ PROVIDED(
"org.seleniumhq.selenium" % "selenium-java" % seleniumVersion,
"org.testcontainers" % "selenium" % testcontainersVersion,
"org.slf4j" % "slf4j-simple" % slf4jVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion,
"org.testcontainers" % "mysql" % testcontainersVersion,
"org.testcontainers" % "postgresql" % testcontainersVersion
)
++ TEST(
"mysql" % "mysql-connector-java" % mysqlConnectorVersion,
"junit" % "junit" % "4.12",
"org.testcontainers" % "selenium" % testcontainersVersion,
"org.postgresql" % "postgresql" % postgresqlDriverVersion,
"org.mockito" % "mockito-core" % mockitoVersion
),
/**
* Publishing
*/
useGpg := true,
publishTo := sonatypePublishTo.value,
publishMavenStyle := true,
sonatypeProfileName := "testcontainers-scala",
sonatypeProjectHosting := Some(GitLabHosting("testcontainers", "testcontainers-scala", "[email protected]")),
licenses := Seq("The MIT License (MIT)" -> new URL("https://opensource.org/licenses/MIT")),
releaseCrossBuild := true,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
)
lazy val microsite = (project in file("docs"))
.settings(moduleName := "docs")
.enablePlugins(MicrositesPlugin)
.settings(
micrositeName := "testcontainers-scala",
micrositeDescription := "Docker containers for testing in scala ",
micrositeAuthor := "dimafeng",
micrositeHighlightTheme := "atom-one-light",
micrositeHomepage := "https://github.com/testcontainers/testcontainers-scala",
micrositeDocumentationUrl := "docs.html",
micrositeGithubOwner := "testcontainers",
micrositeGithubRepo := "testcontainers-scala",
micrositeBaseUrl := "/testcontainers-scala",
ghpagesNoJekyll := false,
fork in tut := true
)