Skip to content

Instantly share code, notes, and snippets.

@yurique
Created April 7, 2021 14:41
Show Gist options
  • Save yurique/d208b813aace05b9b8aa7cb5c7239dbf to your computer and use it in GitHub Desktop.
Save yurique/d208b813aace05b9b8aa7cb5c7239dbf to your computer and use it in GitHub Desktop.
sbt 1.5.0 isDotty
val isScala3Setting = Def.setting {
isScala3(CrossVersion.partialVersion(scalaVersion.value))
}
def isScala3(v: Option[(Long, Long)]): Boolean = v.exists(_._1 != 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment