Skip to content

Commit 2329132

Browse files
committed
added versions of dependencies to BuildInfo
1 parent 59e6c21 commit 2329132

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

.scalafmt.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ fileOverride {
1111
"glob:**.sbt" {
1212
runner.dialect = sbt1
1313
}
14+
"glob:**/project/**.scala" {
15+
runner.dialect = scala213
16+
rewrite.scala3.convertToNewSyntax = no
17+
}
1418
}

build.sbt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import ReleaseTransformations.*
1+
import ReleaseTransformations._
2+
import Dependencies._
23

34
ThisBuild / scalaVersion := "3.1.2"
45
ThisBuild / versionScheme := Some("semver-spec")
@@ -9,18 +10,18 @@ excludeDependencies ++= Seq(
910
)
1011

1112
libraryDependencies ++= Seq(
12-
"org.typelevel" %% "cats-parse" % "0.3.7",
13-
"com.monovore" %% "decline-effect" % "2.2.0",
1413
"co.fs2" %% "fs2-io" % "3.2.7",
15-
"org.polystat.odin" %% "analysis" % "0.4.3",
14+
"com.monovore" %% "decline-effect" % "2.2.0",
15+
"io.circe" %% "circe-core" % "0.14.1",
1616
"is.cir" %% "ciris" % "2.3.2",
1717
"lt.dvim.ciris-hocon" %% "ciris-hocon" % "1.0.1",
1818
"org.http4s" %% "http4s-ember-client" % "1.0.0-M32",
19+
"org.polystat.odin" %% "analysis" % V.odin,
20+
"org.polystat.py2eo" % "transpiler" % V.py2eo,
21+
"org.polystat" % "far" % V.far,
1922
"org.scalameta" %% "munit" % "1.0.0-M3" % Test,
20-
"io.circe" %% "circe-core" % "0.14.1",
21-
"org.polystat.py2eo" % "transpiler" % "0.0.10",
2223
"org.slf4j" % "slf4j-nop" % "1.7.36",
23-
"org.polystat" % "far" % "0.2.0",
24+
"org.typelevel" %% "cats-parse" % "0.3.7",
2425
)
2526

2627
packageOptions := Seq(
@@ -42,7 +43,13 @@ assembly / assemblyMergeStrategy := {
4243
}
4344

4445
enablePlugins(BuildInfoPlugin)
45-
buildInfoKeys := Seq(version)
46+
buildInfoKeys := Seq(
47+
version,
48+
"farVersion" -> V.far,
49+
"j2eoVersion" -> V.j2eo,
50+
"py2eoVersion" -> V.py2eo,
51+
"odinVersion" -> V.odin,
52+
)
4653
buildInfoPackage := "org.polystat.cli"
4754

4855
Global / excludeLintKeys += nativeImageVersion

project/Dependencies.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
object Dependencies {
2+
object V {
3+
val far = "0.2.0"
4+
val j2eo = "0.5.3"
5+
val odin = "0.4.3"
6+
val py2eo = "0.0.10.1"
7+
}
8+
}

0 commit comments

Comments
 (0)