-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
62 lines (57 loc) · 1.53 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
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",
url("https://kien.ai")
)
)
)
)
lazy val scala212 = "2.12.15"
lazy val scala213 = "2.13.6"
lazy val scala3 = "3.0.2"
ThisBuild / scalaVersion := scala213
ThisBuild / scalafixDependencies += organizeImports
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 _ => ""
}
}
)
.settings(
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
)
lazy val docs = project
.in(file("python-docs"))
.enablePlugins(MdocPlugin)
.settings(
mdocVariables := Map(
"PYTHON" -> "/usr/bin/python3"
)
)
.dependsOn(root)