-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
90 lines (77 loc) · 4.11 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
82
83
84
85
86
87
88
89
90
import sbtrelease.ReleaseStateTransformations.{checkSnapshotDependencies, commitNextVersion, commitReleaseVersion, inquireVersions, publishArtifacts, pushChanges, runClean, setNextVersion, setReleaseVersion, tagRelease}
val scala361 = "3.6.1"
ThisBuild / organization := "com.sneaksanddata"
ThisBuild / scalaVersion := scala361
credentials += Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
sys.env.getOrElse("GITHUB_ACTOR", ""),
sys.env.getOrElse("GITHUB_TOKEN", "")
)
releaseVersionFile := file("version.sbt")
releaseVersionBump := sbtrelease.Version.Bump.Bugfix
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
publishArtifacts, // : ReleaseStep
)
releaseIgnoreUntrackedFiles := true
publishTo := {
val ghRepo = "SneaksAndData/arcane-framework-scala"
val ghUser = "_"
val ghToken = sys.env.get("GITHUB_TOKEN")
ghToken.map { token =>
"GitHub Package Registry" at s"https://maven.pkg.github.com/$ghRepo"
}
}
publishMavenStyle := true
lazy val root = (project in file("."))
.settings(
name := "arcane-framework",
idePackagePrefix := Some("com.sneaksanddata.arcane.framework"),
// Compiler options
Test / logBuffered := false,
// Framework dependencies
libraryDependencies += "dev.zio" %% "zio" % "2.1.6",
libraryDependencies += "dev.zio" %% "zio-streams" % "2.1.6",
libraryDependencies += "com.microsoft.sqlserver" % "mssql-jdbc" % "12.8.1.jre11",
libraryDependencies += "software.amazon.awssdk" % "s3" % "2.25.27",
libraryDependencies += "com.lihaoyi" %% "upickle" % "4.0.2",
// https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-api
libraryDependencies += "org.apache.iceberg" % "iceberg-api" % "1.7.1",
// https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-core
libraryDependencies += "org.apache.iceberg" % "iceberg-core" % "1.7.1",
// https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-parquet
libraryDependencies += "org.apache.iceberg" % "iceberg-parquet" % "1.7.1",
// https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-aws
libraryDependencies += "org.apache.iceberg" % "iceberg-aws" % "1.7.1",
// https://mvnrepository.com/artifact/software.amazon.awssdk/auth
libraryDependencies += "software.amazon.awssdk" % "auth" % "2.25.27",
// https://mvnrepository.com/artifact/software.amazon.awssdk/http-auth-aws
libraryDependencies += "software.amazon.awssdk" % "http-auth-aws" % "2.29.9",
// https://mvnrepository.com/artifact/software.amazon.awssdk/sts
libraryDependencies += "software.amazon.awssdk" % "sts" % "2.29.9",
// https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common
libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "3.4.1",
// https://mvnrepository.com/artifact/io.trino/trino-jdbc
libraryDependencies += "io.trino" % "trino-jdbc" % "465",
// Azure dependencies
// https://mvnrepository.com/artifact/com.azure/azure-storage-blob
libraryDependencies += "com.azure" % "azure-storage-blob" % "12.29.0",
// https://mvnrepository.com/artifact/com.azure/azure-identity
libraryDependencies += "com.azure" % "azure-identity" % "1.14.2",
// Test dependencies
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % Test,
libraryDependencies += "org.scalatest" %% "scalatest-flatspec" % "3.2.19" % Test,
libraryDependencies += "org.scalatestplus" %% "easymock-5-3" % "3.2.19.0" % Test,
// Logging and metrics
// For ZIO
libraryDependencies += "dev.zio" %% "zio-logging" % "2.3.2",
libraryDependencies += "dev.zio" %% "zio-logging-slf4j2" % "2.3.2",
// For DataDog
libraryDependencies += "org.apache.logging.log4j" % "log4j-to-slf4j" % "2.24.3",
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.5.16",
libraryDependencies += "net.logstash.logback" % "logstash-logback-encoder" % "8.0",
)