-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
56 lines (52 loc) · 1.99 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
ThisBuild / scalaVersion := "3.3.3"
val V = new {
val catsEffect = "3.5.4"
val circe = "0.14.9"
val circeConfig = "0.10.0"
val http4s = "0.23.27"
val http4sJdkHttpClient = "0.9.1"
val http4sProxy = "0.4.1"
val logbackClassic = "1.5.7"
val munit = "1.0.1"
val munitTaglessFinal = "0.2.0"
}
lazy val commonSettings: Seq[Setting[_]] = Seq(
version := {
val Tag = "refs/tags/v?([0-9]+(?:\\.[0-9]+)+(?:[+-].*)?)".r
sys.env.get("CI_VERSION").collect { case Tag(tag) => tag }
.getOrElse("0.0.1-SNAPSHOT")
},
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % V.logbackClassic % Test,
"de.lolhens" %% "munit-tagless-final" % V.munitTaglessFinal % Test,
"org.scalameta" %% "munit" % V.munit % Test
),
testFrameworks += new TestFramework("munit.Framework"),
assembly / assemblyJarName := s"${name.value}-${version.value}.sh.bat",
assembly / assemblyOption := (assembly / assemblyOption).value
.withPrependShellScript(Some(AssemblyPlugin.defaultUniversalScript(shebang = false))),
assembly / assemblyMergeStrategy := {
case PathList(paths@_*) if paths.last == "module-info.class" => MergeStrategy.discard
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
}
)
lazy val root = (project in file("."))
.settings(commonSettings)
.settings(
name := "docker-registry-cache",
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % V.logbackClassic,
"com.hunorkovacs" %% "circe-config" % V.circeConfig,
"de.lhns" %% "http4s-proxy" % V.http4sProxy,
"io.circe" %% "circe-core" % V.circe,
"io.circe" %% "circe-generic" % V.circe,
"io.circe" %% "circe-parser" % V.circe,
"org.http4s" %% "http4s-circe" % V.http4s,
"org.http4s" %% "http4s-dsl" % V.http4s,
"org.http4s" %% "http4s-ember-server" % V.http4s,
"org.http4s" %% "http4s-jdk-http-client" % V.http4sJdkHttpClient,
"org.typelevel" %% "cats-effect" % V.catsEffect,
)
)