forked from embotech/ecos-java-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
36 lines (30 loc) · 1.22 KB
/
build.sbt
File metadata and controls
36 lines (30 loc) · 1.22 KB
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
import Dependencies._
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / version := "0.0.12"
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
ThisBuild / credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
sys.env.getOrElse("GITHUB_ACTOR", ""),
sys.env.getOrElse("GITHUB_TOKEN", "")
)
lazy val githubRepository = "GitHub Package Registry" at s"https://maven.pkg.github.com/CitrineInformatics/ecos-java-scala"
lazy val commonSettings = Seq(
javah / target := sourceDirectory.value / "native" / "include",
crossPaths := true,
packageDoc / publishArtifact := false,
publishTo := Some(githubRepository)
)
lazy val root = (project in file("."))
.settings(commonSettings:_*)
.settings(
name := "ecos",
libraryDependencies ++= Seq(breeze, jblas)
)
.enablePlugins(JniNative)