-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.sbt
53 lines (48 loc) · 2.11 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
import spray.boilerplate.BoilerplatePlugin._
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
name := "product-collections"
lazy val pc = crossProject(JVMPlatform, JSPlatform) //crossProject.in(file(".")).
.crossType(CrossType.Full)
.in(file("."))
.enablePlugins(spray.boilerplate.BoilerplatePlugin)
.settings(
scalacOptions += "-deprecation",
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.7.1" % Test,
testFrameworks += new TestFramework("utest.runner.Framework"),
crossScalaVersions := Seq("2.12.8"),
sourceDirectories in Compile += new File("./shared/src/"),
name := "product-collections",
organization := "com.github.marklister",
version := "1.4.6-SNAPSHOT",
scalaVersion := "2.12.8",
homepage := Some(url("https://github.com/marklister/product-collections")),
startYear := Some(2013),
description := "Lightweight 2D Data framework. Strongly typed CSV I/O. Statistics.",
licenses += ("BSD Simplified", url("http://opensource.org/licenses/BSD-SIMPLIFIED")),
pomExtra := (
<scm>
<url>[email protected]:marklister/product-collections.git</url>
<connection>scm:git:[email protected]:marklister/product-collections.git</connection>
</scm>
<developers>
<developer>
<id>marklister</id>
<name>Mark Lister</name>
<url>https://github.com/marklister</url>
</developer>
</developers>),
scalacOptions in(Compile, doc) ++= Opts.doc.title("product-collections"),
apiURL := Some(url("http://marklister.github.io/product-collections/target/scala-2.11/api/")),
scalacOptions in(Compile, doc) ++= Seq("-implicits"),
boilerplateSource in Compile := baseDirectory.value.getParentFile / "shared" / "src" / "main" / "boilerplate"
)
//.settings(bintraySettings:_*) //REMOVE FROM PUBLISHED build.sbt
.jvmSettings(
initialCommands in console :=
"""
import com.github.marklister.collections.io._
import com.github.marklister.collections._
"""
)
lazy val productCollectionsJVM = pc.jvm
lazy val productCollectionsJS = pc.js