-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
72 lines (62 loc) · 2.02 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
71
72
import scala.sys.process._
val dottyVersion = "3.0.1-RC1-bin-20210515-83e17f1-NIGHTLY"
val scala213Version = "2.13.5"
val munitVersion = "0.7.26"
val scalapyVersion = "0.3.0+15-598682f0"
val scalapyNumpyVersion = "0.1.0+5-ad550211"
inThisBuild(
List(
organization := "io.kjaer",
homepage := Some(url("https://github.com/maximekjaer/tf-dotty")),
licenses := List(
"MIT" -> url(
"https://github.com/MaximeKjaer/tf-dotty/blob/master/LICENSE"
)
),
developers := List(
Developer(
"maximekjaer",
"Maxime Kjaer",
url("https://kjaer.io")
)
)
)
)
lazy val tensorflow = project
.in(file("modules/tensorflow"))
.dependsOn(`scalapy-tensorflow`, compiletime)
.settings(
organization := "io.kjaer",
name := "tf-dotty",
scalaVersion := dottyVersion,
// Tests:
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test,
testFrameworks += new TestFramework("munit.Framework"),
// ScalaPy:
libraryDependencies += "me.shadaj" % "scalapy-core_2.13" % scalapyVersion,
fork := true,
javaOptions += s"-Djna.library.path=${"python3-config --prefix".!!.trim}/lib"
)
lazy val compiletime = project
.in(file("modules/compiletime"))
.settings(
organization := "io.kjaer",
name := "tf-dotty-compiletime",
scalaVersion := dottyVersion,
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test,
testFrameworks += new TestFramework("munit.Framework")
)
lazy val `scalapy-tensorflow` = project
.in(file("modules/scalapy-tensorflow"))
.settings(
scalaVersion := scala213Version,
organization := "me.shadaj",
publish / skip := true,
// ScalaPy:
libraryDependencies += "me.shadaj" %% "scalapy-core" % scalapyVersion,
libraryDependencies += "me.shadaj" %% "scalapy-numpy" % scalapyNumpyVersion,
// Tests:
libraryDependencies += "org.scalameta" %% "munit" % munitVersion % Test,
testFrameworks += new TestFramework("munit.Framework")
)