-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
62 lines (54 loc) · 1.95 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 CompileFlags._
import org.typelevel.scalacoptions.ScalacOptions
lazy val scala212 = "2.12.20"
lazy val scala213 = "2.13.16"
lazy val supportedScalaVersions = List(scala213, scala212)
ThisBuild / organization := "com.colisweb"
ThisBuild / scalaVersion := scala213
ThisBuild / scalafmtOnCompile := true
ThisBuild / scalafmtCheck := true
ThisBuild / scalafmtSbtCheck := true
ThisBuild / scalacOptions ++= crossScalacOptions(scalaVersion.value)
ThisBuild / pushRemoteCacheTo := Some(
MavenCache("local-cache", baseDirectory.value / sys.env.getOrElse("CACHE_PATH", "sbt-cache"))
)
Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val root = Project(id = "JRubysnessHours", base = file("."))
.settings(moduleName := "root")
.settings(noPublishSettings: _*)
.aggregate(core, jruby)
lazy val core =
project
.settings(moduleName := "JRubysnessHours")
.settings(fork := true)
.settings(crossScalaVersions := supportedScalaVersions)
.settings(Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement)
.settings(
libraryDependencies ++= Seq(
CompileTimeDependencies.scalaCompat
) ++ Seq(
TestDependencies.approval,
TestDependencies.scalatest,
TestDependencies.scalatestplus,
TestDependencies.scalacheck
),
dependencyOverrides += TestDependencies.pprint
)
lazy val jruby =
project
.settings(moduleName := "JRubysnessHoursAdapter")
.settings(fork := true)
.dependsOn(core % "test->test;compile->compile")
.settings(Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement)
.settings(crossScalaVersions := supportedScalaVersions)
.settings(dependencyOverrides += TestDependencies.pprint)
/** Copied from Cats
*/
def noPublishSettings =
Seq(
publish := {},
publishLocal := {},
publishArtifact := false
)
// TODO: wip for debug logs
parallelExecution / test := false