-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.sbt
81 lines (71 loc) · 2.28 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
80
81
val scala213Version = "2.13.8"
val scala3Version = "3.1.2"
val supportedScalaVersions = List(scala3Version)
lazy val mavenSnapshots =
"apache.snapshots" at "https://repository.apache.org/content/groups/snapshots"
resolvers ++= Seq(mavenSnapshots)
val flinkVersion = "1.16.1"
val flinkLibs = Seq(
"org.apache.flink" % "flink-streaming-java" % flinkVersion,
"org.apache.flink" % "flink-core" % flinkVersion,
"org.apache.flink" % "flink-statebackend-rocksdb" % flinkVersion,
"org.apache.flink" % "flink-test-utils" % flinkVersion % Test
)
val otherLibs = Seq(
"org.typelevel" %% "cats-core" % "2.7.0"
)
val testingLibs = Seq(
"org.scalatest" %% "scalatest" % "3.2.11" % Test
)
lazy val root = project
.in(file("."))
.settings(
name := "flink4s",
scalaVersion := scala3Version,
crossScalaVersions := Seq(scala3Version, scala213Version),
libraryDependencies ++= flinkLibs ++ otherLibs ++ testingLibs,
publishingSettings,
Test / parallelExecution := false
)
import ReleaseTransformations._
lazy val publishingSettings = Seq(
organization := "com.ariskk",
organizationName := "ariskk",
organizationHomepage := Some(url("http://ariskk.com/")),
scmInfo := Some(
ScmInfo(
url("https://github.com/ariskk/flink4s"),
"scm:git@github.com:ariskk/flink4s.git"
)
),
developers := List(
Developer(
id = "ariskk",
name = "Aris Koliopoulos",
email = "aris@ariskk.com",
url = url("http://ariskk.com")
)
),
description := "Scala 3 wrapper for Apache Flink",
licenses := List("MIT" -> new URL("http://opensource.org/licenses/MIT")),
homepage := Some(url("https://github.com/ariskk/flink4s")),
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")
},
publishMavenStyle := true,
releaseProcess := Seq[ReleaseStep](
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
)