Skip to content

Commit

Permalink
Merge pull request #512 from kevin-lee/update-docs
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
kevin-lee authored Jan 27, 2024
2 parents 78b8f39 + f9f2767 commit 18e14ca
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 46 deletions.
9 changes: 5 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,11 @@ lazy val docsExtrasRefinement = docsProject("docs-extras-refinement", file("docs
libraryDependencies ++= {
val latestVersion = getLatestExtrasVersion()
List(
"io.kevinlee" %% "extras-refinement" % latestVersion
)
"io.kevinlee" %% "extras-refinement" % latestVersion,
libs.newtype,
) ++ List(libs.cats, libs.refined)
} ++ List(libs.hedgehogCore, libs.hedgehogRunner),
libraryDependencies := (if (isScala3(scalaVersion.value)) List.empty[ModuleID] else libraryDependencies.value),
libraryDependencies := removeScala3Incompatible(scalaVersion.value, libraryDependencies.value),
mdocVariables := createMdocVariables(),
)
.settings(noPublish)
Expand Down Expand Up @@ -1041,7 +1042,7 @@ def crossSubProject(projectName: String, crossProject: CrossProject.Builder): Cr
}

def removeScala3Incompatible(scalaVersion: String, libraryDependencies: Seq[ModuleID]): Seq[ModuleID] =
if (scalaVersion.startsWith("3")) {
if (isScala3(scalaVersion)) {
libraryDependencies.filterNot(props.isScala3Incompatible)
} else {
libraryDependencies
Expand Down
Loading

0 comments on commit 18e14ca

Please sign in to comment.