forked from typelevel/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request typelevel#12 from adriaanm/master
Automate release: settings for dependency versions.
- Loading branch information
Showing
3 changed files
with
30 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: scala | ||
script: | ||
- sbt ++$TRAVIS_SCALA_VERSION compile | ||
- sbt ++$TRAVIS_SCALA_VERSION clean update compile | ||
scala: | ||
- 2.11.0-SNAPSHOT | ||
jdk: | ||
|
@@ -9,3 +9,6 @@ jdk: | |
notifications: | ||
email: | ||
- [email protected] | ||
|
||
# if we get weird timeouts, see https://github.com/spray/spray/pull/233 | ||
# 'set concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)' |
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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
object DependencyKeys { | ||
object VersionKeys { | ||
import sbt.settingKey | ||
|
||
// To facilitate scripted build of all modules (while we're working on getting dbuild up and running) | ||
val scalaXmlVersion = settingKey[String]("Version to use for the scala-xml dependency.") | ||
val scalaCheckVersion = settingKey[String]("Version to use for the scalacheck dependency.") | ||
|
||
val snapshotScalaBinaryVersion = settingKey[String]("The Scala binary version to use when building against Scala SNAPSHOT.") | ||
|
||
def deriveBinaryVersion(sv: String, snapshotScalaBinaryVersion: String) = sv match { | ||
case snap_211 if snap_211.startsWith("2.11") && | ||
snap_211.contains("-SNAPSHOT") => snapshotScalaBinaryVersion | ||
case sv => sbt.CrossVersion.binaryScalaVersion(sv) | ||
} | ||
} |