Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build pureconfig-circe for Scala 2.13 (#581)
* Build pureconfig-circe for Scala 2.13 * Add a forScalaVersions utility
- Loading branch information
1 parent
2f77d39
commit b5d2726
Showing
5 changed files
with
59 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import sbt.Keys.scalaVersion | ||
import sbt.{CrossVersion, Def} | ||
|
||
object Utilities { | ||
|
||
def forScalaVersions[A](f: ((Long, Long)) => A) = Def.setting { | ||
f(CrossVersion.partialVersion(scalaVersion.value).getOrElse(sys.error("Improperly formatted Scala version."))) | ||
} | ||
} |