-
Notifications
You must be signed in to change notification settings - Fork 1
/
pulp.sbt
45 lines (40 loc) · 1.47 KB
/
pulp.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
import sbt._
import Settings._
import sbtcrossproject.CrossPlugin.autoImport.{ crossProject, CrossType }
lazy val root = project.root
.setName("pulp")
.setDescription("Pulp build")
.configureRoot
.noPublish
.aggregate(pulpJVM, pulpJS)
lazy val pulp = crossProject(JVMPlatform, JSPlatform).crossType(CrossType.Pure).build.from("pulp")
.setName("pulp")
.setDescription("Scala library for guiceless dependency injection")
.setInitialImport("cats.implicits._")
.configureModule
.configureTests()
.publish
.settings(Dependencies.scalaReflect)
.settings(libraryDependencies ++= Seq(
"org.specs2" %%% "specs2-core" % Dependencies.specs2Version % "test",
"org.specs2" %%% "specs2-scalacheck" % Dependencies.specs2Version % "test"
))
lazy val pulpJVM = pulp.jvm
lazy val pulpJS = pulp.js
lazy val readme = scalatex.ScalatexReadme(
projectId = "readme",
wd = file(""),
url = "https://github.com/scalalandio/pulp/tree/master",
source = "Readme"
)
.configureModule
.noPublish
.enablePlugins(GhpagesPlugin)
.settings(
siteSourceDirectory := target.value / "scalatex",
git.remoteRepo := "git@github.com:scalalandio/pulp.git",
Jekyll / makeSite / includeFilter := new FileFilter { def accept(p: File) = true }
)
addCommandAlias("fullTest", ";test;scalastyle")
addCommandAlias("fullCoverageTest", ";coverage;test;coverageReport;coverageAggregate;scalastyle")
addCommandAlias("relock", ";unlock;reload;update;lock")