@@ -4,6 +4,7 @@ import SemVer.{Major, Minor, Patch}
44import just .semver .AdditionalInfo .PreRelease
55import kevinlee .sbt .SbtCommon .crossVersionProps
66import sbtcrossproject .CrossProject
7+ import extras .scala .io .syntax .color .*
78
89ThisBuild / scalaVersion := props.ProjectScalaVersion
910ThisBuild / organization := " io.kevinlee"
@@ -76,7 +77,7 @@ lazy val core = module(ProjectName("core"), crossProject(JVMPlatform, JSPlatform
7677 .settings(
7778 description := " Effect Utils - Core" ,
7879 libraryDependencies ++= List (
79- libs.extrasCore.value % Test ,
80+ libs.extrasCore.value % Test ,
8081 libs.libCatsCore(props.catsVersion).value % Test ,
8182 ) ++ (
8283 if (scalaVersion.value.startsWith(" 2.12" ))
@@ -391,7 +392,17 @@ lazy val docs = (project in file("docs-gen-tmp/docs"))
391392
392393 val websiteDir = docusaurDir.value
393394 val latestVersionFile = websiteDir / " latestVersion.json"
394- val latestVersionJson = s """ {"version":" $latestVersion"} """
395+ val latestVersionJson = raw """ {"version":" $latestVersion"} """
396+
397+ val websiteDirRelativePath =
398+ s " ${latestVersionFile.getParentFile.getParentFile.getName.cyan}/ ${latestVersionFile.getParentFile.getName.yellow}"
399+ sLog
400+ .value
401+ .info(
402+ s """ >> Writing ${" the latest version" .blue} to $websiteDirRelativePath/ ${latestVersionFile.getName.green}.
403+ |>> Content: ${latestVersionJson.blue}
404+ | """ .stripMargin
405+ )
395406 IO .write(latestVersionFile, latestVersionJson)
396407
397408 createMdocVariables(latestVersion.some)
@@ -412,8 +423,8 @@ lazy val docsCe3 = (project in file("docs-gen-tmp/docs-ce3"))
412423 libraryDependencies ++= {
413424 val latestTag = getTheLatestTaggedVersion()
414425 List (
415- " org.typelevel" %% " cats-effect" % " 3.6.3" ,
416- " io.kevinlee" %% " effectie-cats-effect3" % latestTag,
426+ " org.typelevel" %% " cats-effect" % " 3.6.3" ,
427+ " io.kevinlee" %% " effectie-cats-effect3" % latestTag,
417428 libs.extrasCats.value,
418429 libs.extrasConcurrent.value,
419430 )
0 commit comments