-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
47 lines (43 loc) · 1.67 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
ThisBuild / organization := "dev.holt"
ThisBuild / homepage := Some(url("https://github.com/bpholt/cats-js-clipboard"))
ThisBuild / licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
ThisBuild / startYear := Option(2018)
ThisBuild / developers := List(
Developer(
"bpholt",
"Brian Holt",
"bholt+cats-js-clipboard@planetholt.com",
url("https://holt.dev")
),
)
ThisBuild / tlBaseVersion := "0.5"
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / mergifyStewardConfig ~= {
_.map(_.copy(mergeMinors = true))
}
ThisBuild / mergifySuccessConditions += MergifyCondition.Custom("#approved-reviews-by>=1")
ThisBuild / mergifyRequiredJobs ++= Seq("validate-steward")
tpolecatScalacOptions += ScalacOptions.release("8")
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / githubWorkflowScalaVersions := Seq("3", "2.13", "2.12")
ThisBuild / githubWorkflowBuildPreamble += WorkflowStep.Run(name = Option("Install jsdom"), commands = List("npm install jsdom"))
ThisBuild / tlSonatypeUseLegacyHost := false
lazy val `cats-js-clipboard` = (project in file("."))
.settings(
crossScalaVersions := Seq(
"3.3.0",
"2.12.18",
"2.13.11",
),
libraryDependencies ++= {
Seq(
"org.typelevel" %%% "cats-core" % "2.9.0",
"org.typelevel" %%% "cats-effect" % "3.5.1",
"org.scala-js" %%% "scalajs-dom" % "2.6.0",
"org.scala-js" %%% "scala-js-macrotask-executor" % "1.1.1",
)
},
description := "cats-effect wrapped utility for copying text to the clipboard from JavaScript",
Test / jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
)
.enablePlugins(ScalaJSPlugin)