-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sbt
45 lines (39 loc) · 1.8 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
import Dependencies._
ThisBuild / name := "lolo"
ThisBuild / scalaVersion := "2.13.10"
ThisBuild / crossScalaVersions := List("2.13.10")
ThisBuild / organization := "io.citrine"
ThisBuild / organizationName := "Citrine Informatics"
ThisBuild / homepage := Some(url("https://github.com/CitrineInformatics/lolo"))
ThisBuild / description := "A random forest-centered machine learning library in Scala."
ThisBuild / licenses += "Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
ThisBuild / developers := List(
Developer(
id = "maxhutch",
name = "Max Hutchinson",
email = "[email protected]",
url = url("https://github.com/maxhutch")
)
)
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/CitrineInformatics/lolo"), "scm:[email protected]:CitrineInformatics/lolo.git")
)
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / libraryDependencies ++= loloDependencies ++ testDependencies
ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")
// Assembly settings
ThisBuild / assembly / test := {}
ThisBuild / assembly / assemblyJarName := s"lolo-jar-with-dependencies.jar"
// Allows for creation of a fat jar by specifying merge strategy when dependencies conflict
// Run `sbt assembly` to create fat jar and save in target/scala-X.X.X directory
ThisBuild / assembly / assemblyMergeStrategy := {
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
case x =>
val oldStrategy = (ThisBuild / assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
enablePlugins(SiteScaladocPlugin)
enablePlugins(GhpagesPlugin)
ThisBuild / git.remoteRepo := "[email protected]:CitrineInformatics/lolo.git"