Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ scriptedLaunchOpts ++= {
testFrameworks += new TestFramework("wvlet.airspec.Framework")

libraryDependencies ++= Seq(
"org.wvlet.airframe" %% "airspec" % "2025.1.22" % Test,
"org.wvlet.airframe" %% "airspec" % "2025.1.27" % Test,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability, it's a good practice to define dependency versions in vals at a central place (e.g., at the top of build.sbt). This makes it easier to manage and update dependencies, especially in projects with many of them.

For example:

val airspecVersion = "2025.1.27"
val commonsCompressVersion = "1.27.1"
val xzVersion = "1.11"

libraryDependencies ++= Seq(
  "org.wvlet.airframe" %% "airspec"          % airspecVersion % Test,
  "org.apache.commons"  % "commons-compress" % commonsCompressVersion,
  "org.tukaani"         % "xz"               % xzVersion
)

"org.apache.commons" % "commons-compress" % "1.27.1",
"org.tukaani" % "xz" % "1.11"
)
Expand Down
Loading