Skip to content

Commit

Permalink
Apply minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcazevedo committed Sep 28, 2019
1 parent 4361f8b commit 1a698ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Expand Up @@ -39,7 +39,7 @@ lazy val docs = (project in file("docs")).
def module(proj: Project) = proj.
enablePlugins(SbtOsgi, TutPlugin).
dependsOn(core).
dependsOn(tests % "test->test"). // In order to reuse thDerivationSuite scalacheck generators
dependsOn(tests % "test->test"). // In order to reuse the DerivationSuite scalacheck generators
dependsOn(generic % "Tut"). // Allow auto-derivation in documentation
settings(commonSettings, tutTargetDirectory := baseDirectory.value)

Expand Down Expand Up @@ -137,8 +137,8 @@ def crossVersionSharedSources(unmanagedSrcs: SettingKey[Seq[File]]) = {
unmanagedSrcs ++= {
val minor = CrossVersion.partialVersion(scalaVersion.value).map(_._2)
List(
if(minor.exists(_ <= 12)) unmanagedSrcs.value.map { dir => new File(dir.getPath + "-2.12-") } else Nil,
if(minor.exists(_ >= 12)) unmanagedSrcs.value.map { dir => new File(dir.getPath + "-2.12+") } else Nil,
if (minor.exists(_ <= 12)) unmanagedSrcs.value.map { dir => new File(dir.getPath + "-2.12-") } else Nil,
if (minor.exists(_ >= 12)) unmanagedSrcs.value.map { dir => new File(dir.getPath + "-2.12+") } else Nil,
).flatten
}
}
Expand Down

0 comments on commit 1a698ac

Please sign in to comment.