-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
47 lines (44 loc) · 1.27 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
import Dependencies._
inThisBuild(
List(
organization := "ai.kien",
homepage := Some(url("https://github.com/kiendang/sbt-scalapy")),
licenses := List(
"BSD-3-Clause" -> url("https://opensource.org/licenses/BSD-3-Clause")
),
developers := List(
Developer(
"kiendang",
"Dang Trung Kien",
url("https://kien.ai")
)
)
)
)
ThisBuild / scalafixDependencies += organizeImports
lazy val `sbt-scalapy` = project
.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-scalapy",
description := "a plugin for automatically configuration of SBT for ScalaPy projects",
libraryDependencies += pythonNativeLibs
)
.settings(
pluginCrossBuild / sbtVersion := "1.2.1",
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value),
scriptedLaunchOpts ++= {
for {
virtualenv <- Option(System.getenv("CI_VIRTUALENV"))
python <- Option(System.getenv("CI_PYTHON"))
} yield s"-Dplugin.python.executable=$python"
}.toSeq,
scriptedBufferLog := false,
addSbtPlugin(sbtScalaNative)
)
.settings(
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions += "-Ywarn-unused-import"
)