forked from haifengl/smile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
87 lines (69 loc) · 3.57 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
name := "smile"
lazy val commonSettings = Seq(
organization := "com.github.haifengl",
organizationName := "Haifeng Li",
organizationHomepage := Some(url("http://haifengl.github.io/")),
version := "2.5.3",
javacOptions in (Compile, compile) ++= Seq("-source", "1.8", "-target", "1.8", "-encoding", "UTF8", "-g:lines,vars,source", "-Xlint:unchecked"),
javacOptions in (Compile, doc) ++= Seq("-Xdoclint:none"),
libraryDependencies += "org.slf4j" % "slf4j-simple" % "1.7.30" % "test",
libraryDependencies += "junit" % "junit" % "4.13" % "test",
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test" exclude("junit", "junit-dep"),
scalaVersion := "2.13.3",
scalacOptions := Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8", "-target:jvm-1.8"),
testOptions in Test := Seq(Tests.Argument(TestFrameworks.JUnit, "-a")),
parallelExecution in Test := false,
crossPaths := false,
autoScalaLibrary := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishArtifact in Test := false,
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
pomExtra := (
<url>https://github.com/haifengl/smile</url>
<licenses>
<license>
<name>GNU Lesser General Public License, Version 3</name>
<url>https://opensource.org/licenses/LGPL-3.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:haifengl/smile.git</url>
<connection>scm:git:[email protected]:haifengl/smile.git</connection>
</scm>
<developers>
<developer>
<id>haifengl</id>
<name>Haifeng Li</name>
<url>https://haifengl.github.io/</url>
</developer>
</developers>
)
)
lazy val nonPubishSettings = commonSettings ++ Seq(
publish / skip := true
)
lazy val root = project.in(file(".")).settings(nonPubishSettings: _*)
.aggregate(core, data, io, math, mkl, graph, interpolation, nlp, plot, json, demo, benchmark, scala, shell)
lazy val math = project.in(file("math")).settings(commonSettings: _*)
lazy val mkl = project.in(file("mkl")).settings(commonSettings: _*).dependsOn(math)
lazy val data = project.in(file("data")).settings(commonSettings: _*).dependsOn(math)
lazy val io = project.in(file("io")).settings(commonSettings: _*).dependsOn(data)
lazy val graph = project.in(file("graph")).settings(commonSettings: _*).dependsOn(math)
lazy val interpolation = project.in(file("interpolation")).settings(commonSettings: _*).dependsOn(math)
lazy val core = project.in(file("core")).settings(commonSettings: _*).dependsOn(data, math, graph, io % "test")
lazy val nlp = project.in(file("nlp")).settings(commonSettings: _*).dependsOn(core)
lazy val plot = project.in(file("plot")).settings(commonSettings: _*).dependsOn(core)
lazy val demo = project.in(file("demo")).settings(nonPubishSettings: _*).dependsOn(core, io, interpolation, plot)
lazy val benchmark = project.in(file("benchmark")).settings(nonPubishSettings: _*).dependsOn(core, scala)
lazy val json = project.in(file("json")).settings(commonSettings: _*)
lazy val scala = project.in(file("scala")).settings(commonSettings: _*).dependsOn(core, io, interpolation, nlp, plot, json)
//lazy val spark = project.in(file("spark")).settings(commonSettings: _*).dependsOn(data)
lazy val shell = project.in(file("shell")).settings(nonPubishSettings: _*).dependsOn(benchmark, demo, scala)