forked from embotech/ecos-java-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (30 loc) · 1.12 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / version := "0.0.10"
ThisBuild / versionScheme := Some("early-semver")
ThisBuild / organization := "io.citrine"
ThisBuild / organizationName := "Citrine Informatics"
ThisBuild / artifactClassifier := Some(osNameClassifier + "_" + osArchitecture)
// Publish versions based on OS name/cpu architecture
lazy val osNameClassifier = System.getProperty("os.name").replace(' ', '_').trim
lazy val osArchitecture = System.getProperty("os.arch").replace(' ', '_').trim
lazy val commonSettings = Seq(
javah / target := sourceDirectory.value / "native" / "include",
crossPaths := true,
packageDoc / publishArtifact := false,
publishTo := {
if (isSnapshot.value) {
None
} else {
Some("Citrine Nexus" at "https://nexus.corp.citrine.io/repository/citrine/")
}
},
publishConfiguration := publishConfiguration.value.withOverwrite(true)
)
lazy val root = (project in file("."))
.settings(commonSettings:_*)
.settings(
name := "ecos",
libraryDependencies ++= Seq(breeze, jblas)
)
.enablePlugins(JniNative)