Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publishing of docs #2884

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ lazy val bigdataModules = Seq[sbt.ClasspathDep[sbt.ProjectReference]](
)

lazy val allModules =
baseModules ++ dbModules ++ jasyncModules ++ codegenModules ++ bigdataModules

lazy val scala212Modules =
baseModules ++ dbModules ++ jasyncModules ++ codegenModules ++ bigdataModules ++ docsModules

lazy val scala213Modules =
baseModules ++ dbModules ++ jasyncModules ++ codegenModules ++ bigdataModules

lazy val scala3Modules = Seq[sbt.ClasspathDep[sbt.ProjectReference]](`quill-engine`, `quill-util`)

def isScala212 = {
def isScala213 = {
val scalaVersion = sys.props.get("quill.scala.version")
scalaVersion.map(_.startsWith("2.12")).getOrElse(false)
scalaVersion.map(_.startsWith("2.13")).getOrElse(false)
}

def isScala3 = {
Expand Down Expand Up @@ -138,9 +138,9 @@ lazy val filteredModules = {
.map(matchModules)
.flatMap(seq => ListSet(seq: _*))

if (isScala212) {
println("SBT =:> Compiling 2.12 Modules Only")
modules.filter(scala212Modules.contains(_))
if (isScala213) {
println("SBT =:> Compiling 2.13 Modules Only")
modules.filter(scala213Modules.contains(_))
} else if (isScala3) {
println("SBT =:> Compiling 3 Modules Only")
modules.filter(scala3Modules.contains(_))
Expand Down