Skip to content

Commit

Permalink
Setup circe project to properly be ignored in Scala 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
quincyjo committed Dec 29, 2023
1 parent c925790 commit dfeff9d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ val circeCore = "io.circe" %% "circe-core" % circeVersion

// skip / publish := true
ThisBuild / version := "0.1"
// Default to same as circe or SBT isn't happy.
// https://github.com/sbt/sbt/issues/3465
ThisBuild / scalaVersion := Scala2_13
ThisBuild / crossScalaVersions := List(Scala2_13, Scala3)
ThisBuild / organization := "com.quincyjo"
Expand Down Expand Up @@ -61,9 +63,6 @@ lazy val core = project
name := "Scala Jsonpath",
moduleName := "scala-json-path",
commonSettings,
// Default to same as circe or SBT isn't happy.
// https://github.com/sbt/sbt/issues/3465
scalaVersion := Scala2_13,
crossScalaVersions := List(Scala2_13, Scala3)
)

Expand All @@ -73,8 +72,16 @@ lazy val circe = project
.settings(
name := "Scala Jsonpath Circe",
moduleName := "scala-json-path-circe",
scalaVersion := Scala2_13,
commonSettings,
libraryDependencies += circeCore,
crossScalaVersions := List(Scala2_13)
skip := tlIsScala3.value,
update / skip := false,
libraryDependencies ++= (
if (tlIsScala3.value) Nil
else
Seq(
scalameta,
scalaTest,
scalaTestFlatSpec,
circeCore
)
)
)

0 comments on commit dfeff9d

Please sign in to comment.