-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
57 lines (52 loc) · 1.34 KB
/
build.sbt
File metadata and controls
57 lines (52 loc) · 1.34 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import Dependencies._
inThisBuild(
List(
organization := "ai.kien",
homepage := Some(url("https://github.com/kiendang/python-native-libs")),
licenses := List("BSD-3-Clause" -> url("https://opensource.org/licenses/BSD-3-Clause")),
developers := List(
Developer(
"kiendang",
"Dang Trung Kien",
"mail@kien.ai",
url("https://kien.ai")
)
)
)
)
lazy val scala212 = "2.12.20"
lazy val scala213 = "2.13.17"
lazy val scala3 = "3.3.7"
ThisBuild / scalaVersion := scala213
lazy val root = project
.in(file("."))
.settings(
name := "Python Native Libs",
crossScalaVersions := Seq(scala212, scala213, scala3),
libraryDependencies ++= Seq(
scalaCollectionCompat,
scalapy % Test,
scalaTest % Test
),
Test / fork := true
)
.settings(
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions += {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 13)) => "-Wunused:imports"
case Some((2, 12)) => "-Ywarn-unused-import"
case _ => ""
}
}
)
lazy val docs = project
.in(file("python-docs"))
.enablePlugins(MdocPlugin)
.settings(
mdocVariables := Map(
"PYTHON" -> "/usr/bin/python3"
)
)
.dependsOn(root)