2019-06-06 14:21:15 +02:00
|
|
|
lazy val currentVersion = SettingKey[String]("currentVersion")
|
|
|
|
lazy val nd4jVersion = SettingKey[String]("nd4jVersion")
|
|
|
|
lazy val publishSomeThing = sys.props.getOrElse("repoType", default = "local").toLowerCase match {
|
|
|
|
case repoType if repoType.contains("nexus") => publishNexus
|
|
|
|
case repoType if repoType.contains("bintray") => publishBintray
|
|
|
|
case repoType if repoType.contains("sonatype") => publishSonatype
|
|
|
|
case _ => publishLocalLocal
|
|
|
|
}
|
|
|
|
|
|
|
|
val nexusStagingRepoId = sys.props.getOrElse("stageRepoId", default = "deploy/maven2")
|
|
|
|
lazy val releaseRepositoryId = sys.props.getOrElse("stageRepoId", default = "deploy/maven2") match {
|
|
|
|
case stageRepoId if stageRepoId.equals("") => "deploy/maven2"
|
|
|
|
case stageRepoId if stageRepoId.equals("deploy/maven2") => "deploy/maven2"
|
|
|
|
case _ => "deployByRepositoryId/" + nexusStagingRepoId
|
|
|
|
}
|
|
|
|
|
|
|
|
resolvers in ThisBuild ++= Seq(
|
|
|
|
Resolver.sonatypeRepo("snapshots")
|
|
|
|
)
|
|
|
|
|
|
|
|
cleanFiles += baseDirectory.value / "lib"
|
|
|
|
val mvnInstall = Seq("mvn", "install", "-q", "-f", "sbt-pom.xml")
|
|
|
|
val operatingSystem = sys.props("os.name").toLowerCase.substring(0, 3)
|
|
|
|
update := {
|
|
|
|
operatingSystem match {
|
|
|
|
case "win" => { Seq("cmd", "/C") ++ mvnInstall !; update.value }
|
|
|
|
case _ => { mvnInstall !; update.value }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lazy val commonSettings = Seq(
|
|
|
|
scalaVersion := "2.11.8",
|
|
|
|
crossScalaVersions := Seq("2.10.6", "2.11.8"),
|
|
|
|
name := "nd4s",
|
|
|
|
version := sys.props.getOrElse("currentVersion", default = "1.0.0-SNAPSHOT"),
|
|
|
|
organization := "org.nd4j",
|
|
|
|
resolvers += Resolver.mavenLocal,
|
|
|
|
resolvers in ThisBuild ++= Seq(Opts.resolver.sonatypeSnapshots),
|
|
|
|
nd4jVersion := sys.props.getOrElse("nd4jVersion", default = "1.0.0-SNAPSHOT"),
|
|
|
|
libraryDependencies ++= Seq(
|
Version upgrades (#199)
* DataVec fixes for Jackson version upgrade
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J jackson updates + databind version 2.9.9.3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Shade snakeyaml along with jackson
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Version fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Switch DataVec legacy JSON format handling to mixins
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Next set of fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Cleanup for legacy JSON mapping
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade commons compress to 1.18; small test fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* New Jackson backward compatibility for DL4J - Round 1
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* New Jackson backward compatibility for DL4J - Round 2
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* More fixes, all but legacy custom passing
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Provide an upgrade path for custom layers for models in pre-1.0.0-beta JSON format
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Legacy deserialization cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Small amount of polish - legacy JSON
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade guava version
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* IEvaluation legacy format deserialization fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade play version to 2.7.3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Update nd4j-parameter-server-status to new Play API
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Update DL4J UI for new play version
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* More play framework updates
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Small fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Remove Spark 1/2 adapter code from DataVec
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* datavec-spark dependency cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 1
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 2
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 4
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Test fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Another fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Breeze upgrade, dependency cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Add Scala 2.12 version to pom.xml
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* change-scala-versions.sh - add scala 2.12, remove 2.10
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Move Spark version properties to parent pom (now that only one spark version is supported)
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DataVec Play fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* datavec play dependency fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Clean up old spark/jackson stuff
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Cleanup jackson unused dependencies
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Dropping redundant dependency
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* Removed scalaxy dependency
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* DataVec fixes for Jackson version upgrade
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J jackson updates + databind version 2.9.9.3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Shade snakeyaml along with jackson
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Version fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Switch DataVec legacy JSON format handling to mixins
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Next set of fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Cleanup for legacy JSON mapping
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade commons compress to 1.18; small test fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* New Jackson backward compatibility for DL4J - Round 1
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* New Jackson backward compatibility for DL4J - Round 2
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* More fixes, all but legacy custom passing
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Provide an upgrade path for custom layers for models in pre-1.0.0-beta JSON format
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Legacy deserialization cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Small amount of polish - legacy JSON
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade guava version
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* IEvaluation legacy format deserialization fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Upgrade play version to 2.7.3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Update nd4j-parameter-server-status to new Play API
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Update DL4J UI for new play version
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* More play framework updates
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Small fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Remove Spark 1/2 adapter code from DataVec
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* datavec-spark dependency cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 1
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 2
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 3
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DL4J spark updates, pt 4
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Test fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Another fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Breeze upgrade, dependency cleanup
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Add Scala 2.12 version to pom.xml
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* change-scala-versions.sh - add scala 2.12, remove 2.10
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Move Spark version properties to parent pom (now that only one spark version is supported)
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DataVec Play fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* datavec play dependency fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Clean up old spark/jackson stuff
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Cleanup jackson unused dependencies
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Add shaded guava
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Dropping redundant dependency
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* Removed scalaxy dependency
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* Ensure not possible to import pre-shaded classes, and remove direct guava dependencies in favor of shaded
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* ND4J Shaded guava import fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* DataVec and DL4J guava shading
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Arbiter, RL4J fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Build fixed
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* Fix dependency
Signed-off-by: Alexander Stoyakin <alexander.stoyakin@gmail.com>
* Fix bad merge
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Jackson shading fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Set play secret, datavec-spark-inference-server
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Fix for datavec-spark-inference-server
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Arbiter fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Arbiter fixes
Signed-off-by: AlexDBlack <blacka101@gmail.com>
* Small test fix
Signed-off-by: AlexDBlack <blacka101@gmail.com>
2019-08-30 06:35:27 +02:00
|
|
|
// "com.nativelibs4java" %% "scalaxy-loops" % "0.3.4",
|
2019-06-06 14:21:15 +02:00
|
|
|
// "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.2.1" % 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 },
|
|
|
|
useGpg := true,
|
|
|
|
pgpPassphrase := Some(Array()),
|
|
|
|
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._"
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val publishNexus = Seq(
|
|
|
|
publishTo := {
|
|
|
|
val nexus = "https://nexus.ci.skymind.io/"
|
|
|
|
if (isSnapshot.value)
|
|
|
|
Some("snapshots" at nexus + "content/repositories/maven-snapshots")
|
|
|
|
else
|
|
|
|
Some("releases" at nexus + "service/local/staging/" + releaseRepositoryId)
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val publishBintray = Seq(
|
|
|
|
publishTo := {
|
|
|
|
val jfrog = "https://oss.jfrog.org/artifactory/"
|
|
|
|
if (isSnapshot.value)
|
|
|
|
Some("snapshots" at jfrog + "oss-snapshot-local")
|
|
|
|
else
|
|
|
|
Some("releases" at jfrog + "oss-release-local")
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val publishSonatype = Seq(
|
|
|
|
publishTo := {
|
|
|
|
val nexus = "https://oss.sonatype.org/"
|
|
|
|
if (isSnapshot.value)
|
|
|
|
Some("snapshots" at nexus + "content/repositories/snapshots")
|
|
|
|
else
|
|
|
|
Some("releases" at nexus + "service/local/staging/" + releaseRepositoryId)
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val publishLocalLocal = Seq(
|
|
|
|
publish := {},
|
|
|
|
publishLocal := {}
|
|
|
|
)
|
|
|
|
|
|
|
|
lazy val root = (project in file(".")).settings(
|
|
|
|
commonSettings,
|
|
|
|
publishSomeThing
|
|
|
|
)
|