Skip to content

Commit ac5cb0d

Browse files
committed
factor versions for sanity
1 parent 8f29651 commit ac5cb0d

File tree

2 files changed

+36
-21
lines changed

2 files changed

+36
-21
lines changed

build.sbt

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import laika.ast.Path.Root
22
import laika.ast.Styles
33
import laika.helium.config.{HeliumIcon, IconLink}
4+
import Dependencies.versions._
45

56
ThisBuild / tlBaseVersion := "0.2"
67

@@ -31,8 +32,8 @@ lazy val core = crossProject(JVMPlatform)
3132
name := "natchez-akka-http",
3233
description := "Integration for Natchez and Akka Http",
3334
libraryDependencies ++= Seq(
34-
"com.typesafe.akka" %% "akka-http" % "10.2.9" % Optional,
35-
"org.tpolecat" %%% "natchez-core" % "0.1.6",
35+
"com.typesafe.akka" %% "akka-http" % akkaHttp % Optional,
36+
"org.tpolecat" %%% "natchez-core" % natchez,
3637
),
3738
)
3839

@@ -75,15 +76,15 @@ lazy val exampleTapir = crossProject(JVMPlatform)
7576
.settings(
7677
name := "tapir example",
7778
libraryDependencies ++= Seq(
78-
"com.softwaremill.sttp.tapir" %%% "tapir-akka-http-server" % "1.0.2",
79-
"com.softwaremill.sttp.tapir" %%% "tapir-core" % "1.0.2",
80-
"com.softwaremill.sttp.tapir" %%% "tapir-cats" % "1.0.2",
81-
"org.apache.logging.log4j" % "log4j-api" % "2.18.0",
82-
"org.apache.logging.log4j" % "log4j-core" % "2.18.0",
83-
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.18.0",
84-
"org.tpolecat" %%% "natchez-log" % "0.1.6",
85-
"org.typelevel" %%% "cats-effect" % "3.3.14",
86-
"org.typelevel" %%% "log4cats-slf4j" % "2.4.0",
79+
"com.softwaremill.sttp.tapir" %%% "tapir-akka-http-server" % tapir,
80+
"com.softwaremill.sttp.tapir" %%% "tapir-core" % tapir,
81+
"com.softwaremill.sttp.tapir" %%% "tapir-cats" % tapir,
82+
"org.apache.logging.log4j" % "log4j-api" % log4j,
83+
"org.apache.logging.log4j" % "log4j-core" % log4j,
84+
"org.apache.logging.log4j" % "log4j-slf4j-impl" % log4j,
85+
"org.tpolecat" %%% "natchez-log" % natchez,
86+
"org.typelevel" %%% "cats-effect" % catsEffect,
87+
"org.typelevel" %%% "log4cats-slf4j" % log4cats,
8788
),
8889
)
8990

@@ -94,15 +95,15 @@ lazy val exampleVanillaAkka = crossProject(JVMPlatform)
9495
.settings(
9596
name := "vanilla akka http example",
9697
libraryDependencies ++= Seq(
97-
"com.typesafe.akka" %% "akka-actor" % "2.6.19",
98-
"com.typesafe.akka" %% "akka-stream" % "2.6.19",
99-
"com.typesafe.akka" %% "akka-http" % "10.2.9",
100-
"org.apache.logging.log4j" % "log4j-api" % "2.18.0",
101-
"org.apache.logging.log4j" % "log4j-core" % "2.18.0",
102-
"org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.18.0",
103-
"org.tpolecat" %%% "natchez-log" % "0.1.6",
104-
"org.typelevel" %%% "cats-effect" % "3.3.14",
105-
"org.typelevel" %%% "log4cats-slf4j" % "2.4.0",
98+
"com.typesafe.akka" %% "akka-actor" % akka,
99+
"com.typesafe.akka" %% "akka-stream" % akka,
100+
"com.typesafe.akka" %% "akka-http" % akkaHttp,
101+
"org.apache.logging.log4j" % "log4j-api" % log4j,
102+
"org.apache.logging.log4j" % "log4j-core" % log4j,
103+
"org.apache.logging.log4j" % "log4j-slf4j-impl" % log4j,
104+
"org.tpolecat" %%% "natchez-log" % natchez,
105+
"org.typelevel" %%% "cats-effect" % catsEffect,
106+
"org.typelevel" %%% "log4cats-slf4j" % log4cats,
106107
),
107108
)
108109

@@ -112,6 +113,6 @@ lazy val tests = crossProject(JVMPlatform)
112113
.dependsOn(core)
113114
.settings(
114115
name := "tests",
115-
libraryDependencies ++= Seq("org.scalacheck" %%% "scalacheck" % "1.16.0", "org.scalameta" %%% "munit" % "0.7.29")
116+
libraryDependencies ++= Seq("org.scalacheck" %%% "scalacheck" % scalacheck, "org.scalameta" %%% "munit" % munit)
116117
.map(_ % Test),
117118
)

project/Dependencies.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
object Dependencies {
2+
3+
object versions {
4+
val akka = "2.6.19"
5+
val akkaHttp = "10.2.9"
6+
val catsEffect = "3.3.14"
7+
val log4cats = "2.4.0"
8+
val log4j = "2.18.0"
9+
val munit = "0.7.29"
10+
val natchez = "0.1.6"
11+
val scalacheck = "1.16.0"
12+
val tapir = "1.0.2"
13+
}
14+
}

0 commit comments

Comments
 (0)