intellij idea - Hide Projects in .sbt -
i have following declarations in .sbt file:
lazy val root = (project("core", file(".")) aggregate(project1, project2) settings (...)) lazy val project1 = project("project1", file("project1")) lazy val project2 = project("project2", file("project2")) lazy val project3 = project("project3", file("project3"))
i want default have project3 hidden sbt (and of course intellij idea project), , have visible after enabling via system property -dproject3.enabled=true
. ideas how implement such forking?
just assign subproject conditionally:
lazy val project3 = if (system.getproperty("project3.enabled") == "true") { project("project3", file("project3")) } else { // cheat type system working. there might // cleaner way this. root }
Comments
Post a Comment