-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
70 lines (62 loc) · 1.91 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
// sblas build
val prevVersion = "0.7.0"
val nextVersion = "0.7.1"
val scala212 = "2.12.20"
val scala213 = "2.13.16"
val scala3 = "3.3.5"
val versionsNative = Seq(scala212, scala213, scala3)
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := versionsNative
ThisBuild / versionScheme := Some("early-semver")
inThisBuild(
List(
description := "BLAS interface for Scala Native",
organization := "org.ekrich",
homepage := Some(url("https://github.com/ekrich/sblas")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
id = "ekrich",
name = "Eric K Richardson",
email = "[email protected]",
url = url("http://github.ekrich.org/")
)
),
version := dynverGitDescribeOutput.value.mkVersion(versionFmt, ""),
dynver := sbtdynver.DynVer
.getGitDescribeOutput(new java.util.Date)
.mkVersion(versionFmt, "")
)
)
// stable snapshot is not great for publish local
def versionFmt(out: sbtdynver.GitDescribeOutput): String = {
val tag = out.ref.dropPrefix
if (out.isCleanAfterTag) tag
else nextVersion + "-SNAPSHOT"
}
lazy val commonSettings = Seq(
logLevel := Level.Info, // Info, Debug
scalacOptions ++= List("-unchecked", "-deprecation", "-feature"),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-s", "-v"),
// mima settings
mimaPreviousArtifacts := Set("org.ekrich" %%% "sblas" % prevVersion)
)
lazy val root = project
.in(file("."))
.settings(
name := "sblas-root",
publish / skip := true,
doc / aggregate := false,
doc := (sblas / Compile / doc).value,
packageDoc / aggregate := false,
packageDoc := (sblas / Compile / packageDoc).value
)
.aggregate(sblas)
lazy val sblas = project
.in(file("sblas"))
.settings(
commonSettings
)
.enablePlugins(ScalaNativePlugin, ScalaNativeJUnitPlugin)