forked from taisukeoe/nd4s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (63 loc) · 2.58 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
lazy val nd4jVersion = SettingKey[String]("nd4jVersion")
lazy val root = (project in file(".")).settings(
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.10.6", "2.11.8"),
name := "nd4s",
version := "0.7.1-SNAPSHOT",
organization := "org.nd4j",
resolvers += "Local Maven Repository" at "file:///" + Path.userHome.absolutePath + "/.m2/repository",
nd4jVersion := "0.7.1-SNAPSHOT",
libraryDependencies ++= Seq(
"com.nativelibs4java" %% "scalaxy-loops" % "0.3.4",
"org.nd4j" % "nd4j-api" % nd4jVersion.value,
"org.nd4j" % "nd4j-native-platform" % nd4jVersion.value % Test,
"org.scalatest" %% "scalatest" % "2.2.6" % Test,
"ch.qos.logback" % "logback-classic" % "1.1.7" % Test,
"org.scalacheck" %% "scalacheck" % "1.12.5" % Test,
"org.scalanlp" %% "breeze" % "0.12" % Test,
"com.github.julien-truffaut" %% "monocle-core" % "1.2.0" % Test
),
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-language:implicitConversions", "-language:higherKinds", "-language:postfixOps"),
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
publishTo <<= version {
v =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := {
<url>http://nd4j.org/</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git@github.com:SkymindIO/deeplearning4j.git</connection>
<developerConnection>scm:git:git@github.com:SkymindIO/deeplearning4j.git</developerConnection>
<url>git@github.com:deeplearning4j/deeplearning4j.git</url>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>agibsonccc</id>
<name>Adam Gibson</name>
<email>adam@skymind.io</email>
</developer>
<developer>
<id>taisukeoe</id>
<name>Taisuke Oe</name>
<email>oeuia.t@gmail.com</email>
</developer>
</developers>
},
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
releasePublishArtifactsAction := com.typesafe.sbt.pgp.PgpKeys.publishSigned.value,
releaseCrossBuild := true,
initialCommands in console := "import org.nd4j.linalg.factory.Nd4j; import org.nd4s.Implicits._")