-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
112 lines (93 loc) · 3.77 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Variables
val org: String = "com.outr"
val projectName: String = "robobrowser"
val githubOrg: String = "outr"
val email: String = "[email protected]"
val developerId: String = "darkfrog"
val developerName: String = "Matt Hicks"
val developerURL: String = "https://matthicks.com"
name := projectName
ThisBuild / organization := org
ThisBuild / version := "2.0.0"
ThisBuild / scalaVersion := "2.13.16"
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / sonatypeProfileName := org
ThisBuild / licenses := Seq("MIT" -> url(s"https://github.com/$githubOrg/$projectName/blob/master/LICENSE"))
ThisBuild / sonatypeProjectHosting := Some(xerial.sbt.Sonatype.GitHubHosting(githubOrg, projectName, email))
ThisBuild / homepage := Some(url(s"https://github.com/$githubOrg/$projectName"))
ThisBuild / scmInfo := Some(
ScmInfo(
url(s"https://github.com/$githubOrg/$projectName"),
s"scm:[email protected]:$githubOrg/$projectName.git"
)
)
ThisBuild / developers := List(
Developer(id=developerId, name=developerName, email=email, url=url(developerURL))
)
ThisBuild / outputStrategy := Some(StdoutOutput)
ThisBuild / fork := true
ThisBuild / javaOptions ++= Seq(
"--enable-native-access=ALL-UNNAMED",
"--add-modules", "jdk.incubator.vector"
)
ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oDF")
val scribeVersion: String = "3.16.0"
val rapidVersion: String = "0.10.0"
val spiceVersion: String = "0.8.2"
val seleniumVersion: String = "4.29.0"
val jsoupVersion: String = "1.18.3"
val appiumVersion: String = "9.4.0"
val sourcecodeVersion: String = "0.4.2"
val rsyntaxtextareaVersion: String = "3.5.4"
val scalatestVersion: String = "3.2.19"
val root = project.in(file("."))
.aggregate(core, selenium, cdp)
.settings(
name := projectName,
publish := {},
publishLocal := {}
)
lazy val core = project.in(file("core"))
.settings(
name := s"$projectName-core"
)
lazy val selenium = project.in(file("selenium"))
.dependsOn(core)
.settings(
name := s"$projectName-selenium",
libraryDependencies ++= Seq(
"com.outr" %% "scribe-slf4j2" % scribeVersion,
"com.outr" %% "spice-client-jvm" % spiceVersion,
"com.outr" %% "spice-server-undertow" % spiceVersion,
"com.outr" %% "rapid-core" % rapidVersion,
"org.jsoup" % "jsoup" % jsoupVersion,
"io.appium" % "java-client" % appiumVersion,
"org.seleniumhq.selenium" % "selenium-api" % seleniumVersion,
"org.seleniumhq.selenium" % "selenium-chrome-driver" % seleniumVersion,
"org.seleniumhq.selenium" % "selenium-firefox-driver" % seleniumVersion,
"org.seleniumhq.selenium" % "selenium-remote-driver" % seleniumVersion,
"org.seleniumhq.selenium" % "htmlunit-driver" % "4.13.0",
"org.seleniumhq.selenium" % "selenium-support" % seleniumVersion,
"org.seleniumhq.selenium" % "selenium-devtools-v131" % seleniumVersion,
"com.lihaoyi" %% "sourcecode" % sourcecodeVersion,
"com.fifesoft" % "rsyntaxtextarea" % rsyntaxtextareaVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % "test"
)
)
lazy val cdp = project.in(file("cdp"))
.dependsOn(core)
.settings(
name := s"$projectName-cdp",
libraryDependencies ++= Seq(
"com.outr" %% "spice-client-okhttp" % spiceVersion,
"com.outr" %% "spice-server-undertow" % spiceVersion,
"com.outr" %% "rapid-core" % rapidVersion,
"com.outr" %% "rapid-scribe" % rapidVersion,
"org.jsoup" % "jsoup" % jsoupVersion,
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
"com.outr" %% "rapid-test" % rapidVersion % Test
)
)