From dfeff9d3b04bb48e00feb1207f4df3831a3e8520 Mon Sep 17 00:00:00 2001 From: Quincy Jo Date: Fri, 29 Dec 2023 15:33:54 -0500 Subject: [PATCH] Setup circe project to properly be ignored in Scala 3. --- build.sbt | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/build.sbt b/build.sbt index ec43e41..4ae1cce 100755 --- a/build.sbt +++ b/build.sbt @@ -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" @@ -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) ) @@ -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 + ) + ) )