Skip to content

Commit

Permalink
[ENE-49] util-3 and json-3 pure Scala 3 modules
Browse files Browse the repository at this point in the history
  • Loading branch information
programaker committed Dec 6, 2024
1 parent 830e497 commit ab83fdd
Show file tree
Hide file tree
Showing 45 changed files with 4,425 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ src_managed
*.deb
*.changes
*.worksheet.sc
metals.sbt
.vscode
.metals
.bloop
26 changes: 23 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lazy val scala3 = "3.5.2"

// sbt-github-actions needs configuration in `ThisBuild`
ThisBuild / crossScalaVersions := Seq(scala2_12, scala2_13, scala3)
ThisBuild / scalaVersion := scala3
ThisBuild / scalaVersion := scala2_13
ThisBuild / githubWorkflowPublishTargetBranches := List()
ThisBuild / githubWorkflowJavaVersions := List(JavaSpec.temurin("17"))
ThisBuild / githubWorkflowBuildPreamble ++= List(
Expand Down Expand Up @@ -77,6 +77,11 @@ lazy val `sphere-libs` = project
publish := {}
)
.aggregate(
// Scala 3 modules
`sphere-util-3`,
`sphere-json-3`,

// Scala 2 modules
`sphere-util`,
`sphere-json`,
`sphere-json-core`,
Expand All @@ -88,6 +93,23 @@ lazy val `sphere-libs` = project
`benchmarks`
)

// Scala 3 modules

lazy val `sphere-util-3` = project
.in(file("./util-3"))
.settings(scalaVersion := scala3)
.settings(standardSettings: _*)
.settings(homepage := Some(url("https://github.com/commercetools/sphere-scala-libs/README.md")))

lazy val `sphere-json-3` = project
.in(file("./json/json-3"))
.settings(scalaVersion := scala3)
.settings(standardSettings: _*)
.settings(Fmpp.settings: _*)
.dependsOn(`sphere-util-3`)

// Scala 2 modules

lazy val `sphere-util` = project
.in(file("./util"))
.settings(standardSettings: _*)
Expand Down Expand Up @@ -147,8 +169,6 @@ lazy val `sphere-mongo` = project
url("https://github.com/commercetools/sphere-scala-libs/blob/master/mongo/README.md")))
.dependsOn(`sphere-mongo-core`, `sphere-mongo-derivation`)

// benchmarks

lazy val benchmarks = project
.settings(standardSettings: _*)
.settings(publishArtifact := false, publish := {})
Expand Down
5 changes: 5 additions & 0 deletions json/json-3/dependencies.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-jackson" % "4.0.7",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.17.2",
"org.typelevel" %% "cats-core" % "2.12.0"
)
Loading

0 comments on commit ab83fdd

Please sign in to comment.