-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
79 lines (66 loc) · 2.68 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
73
74
75
76
77
78
79
ThisBuild / name := "neo4j.almaren"
ThisBuild / organization := "com.github.music-of-the-ainur"
lazy val scala212 = "2.12.10"
lazy val scala213 = "2.13.9"
crossScalaVersions := Seq(scala212,scala213)
ThisBuild / scalaVersion := scala213
val sparkVersion = "3.4.1"
val majorVersionReg = "([0-9]+\\.[0-9]+).{0,}".r
val majorVersionReg(majorVersion) = sparkVersion
scalacOptions ++= Seq("-deprecation", "-feature")
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"com.github.music-of-the-ainur" %% "almaren-framework" % s"0.9.10-${majorVersion}" % "provided",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.5",
"org.scalatest" %% "scalatest" % "3.2.14" % "test",
"org.neo4j" %% "neo4j-connector-apache-spark" % "5.2.0_for_spark_3"
)
enablePlugins(GitVersioning)
resolvers += "Spark Packages Repo" at "https://repos.spark-packages.org"
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/modakanalytics/neo4j.almaren"),
"scm:git@github.com:modakanalytics/neo4j.almaren.git"
)
)
ThisBuild / developers := List(
Developer(
id = "mantovani",
name = "Daniel Mantovani",
email = "daniel.mantovani@modak.com",
url = url("https://github.com/music-of-the-ainur")
),
Developer(
id = "badrinathpatchikolla",
name = "Badrinath Patchikolla",
email = "badrinath.patchikolla@modakanalytics.com",
url = url("https://github.com/music-of-the-ainur")
),
Developer(
id = "sridhar-sid",
name = "Sridhar Mudiraj",
email = "sridhar.mudiraj@modak.com",
url = url("https://github.com/music-of-the-ainur")
),
Developer(
id = "kiranreddy-modak",
name = "Kiran Bolla",
email = "kiran.bolla@modak.com",
url = url("https://github.com/music-of-the-ainur")
)
)
ThisBuild / description := "Neo4j Connector For Almaren Framework"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/music-of-the-ainur/neo4j.almaren"))
ThisBuild / organizationName := "Modak Analytics"
ThisBuild / organizationHomepage := Some(url("https://github.com/modakanalytics"))
// Remove all additional repository other than Maven Central from POM
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / 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/deploy/maven2")
}
ThisBuild / publishMavenStyle := true