-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (57 loc) · 2.03 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
version := "1.1.2"
scalaVersion := "2.13.15"
name := "flink-scala-2.13"
lazy val flinkV = "1.16.2"
lazy val scalaTestV = "3.2.17"
assembly / artifact := {
val art = (assembly / artifact).value
art.withClassifier(Some("assembly"))
}
addArtifact(assembly / artifact, assembly)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishTo := {
val defaultNexusUrl = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at defaultNexusUrl + "content/repositories/snapshots")
else {
sonatypePublishToBundle.value
}
},
Test / publishArtifact := false,
//We don't put scm information here, it will be added by release plugin and if scm provided here is different than the one from scm
//we'll end up with two scm sections and invalid pom...
pomExtra in Global := {
<scm>
<connection>scm:git:github.com/TouK/flink-scala-2.13.git</connection>
<developerConnection>scm:git:[email protected]:TouK/flink-scala-2.13.git</developerConnection>
<url>github.com/TouK/flink-scala-2.13</url>
</scm>
<developers>
<developer>
<id>TouK</id>
<name>TouK</name>
<url>https://touk.pl</url>
</developer>
</developers>
},
organization := "pl.touk",
)
lazy val root = (project in file("."))
.settings(
name := "flink-scala-2.13",
organization := "pl.touk",
licenses := Seq("Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/TouK/flink-scala-2.13")),
libraryDependencies ++= {
Seq(
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.apache.flink" % "flink-streaming-java" % flinkV % "provided",
"com.twitter" %% "chill" % "0.9.5" exclude("com.esotericsoftware", "kryo-shaded"),
"com.esotericsoftware.kryo" % "kryo" % "2.24.0" % "provided",
"org.scalatest" %% "scalatest" % scalaTestV % "test",
)
}
)
.settings(publishSettings)