Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Scala 2.12 #26

Merged
merged 6 commits into from
Mar 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ sudo: false
scala:
- 2.11.8
- 2.10.6
jdk: oraclejdk7
matrix:
include:
- scala: 2.12.1
jdk: oraclejdk8
31 changes: 25 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,38 @@ organization := "me.lessis"

name := "bintry"

version := "0.4.0"
version := "0.5.0-SNAPSHOT"

description := "your packages, delivered fresh"

crossScalaVersions := Seq("2.10.4", "2.11.5")
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.1")

scalaVersion := crossScalaVersions.value.last

scalacOptions in ThisBuild ++= Seq(Opts.compile.deprecation) ++
Seq("-Ywarn-unused-import", "-Ywarn-unused", "-Xlint", "-feature").filter(
Function.const(scalaVersion.value.startsWith("2.11")))
val unusedWarnings = Seq("-Ywarn-unused-import", "-Ywarn-unused")

libraryDependencies ++= Seq("net.databinder.dispatch" %% "dispatch-json4s-native" % "0.11.2")
scalacOptions ++= Seq(Opts.compile.deprecation, "-Xlint", "-feature")

scalacOptions ++= PartialFunction.condOpt(CrossVersion.partialVersion(scalaVersion.value)){
case Some((2, v)) if v >= 11 => unusedWarnings
}.toList.flatten

Seq(Compile, Test).flatMap(c =>
scalacOptions in (c, console) --= unusedWarnings
)

val dispatchVersion = SettingKey[String]("dispatchVersion")

dispatchVersion := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 10)) =>
"0.11.3"
case _ =>
"0.12.0"
}
}

libraryDependencies ++= Seq("net.databinder.dispatch" %% "dispatch-json4s-native" % dispatchVersion.value)

initialCommands := "import scala.concurrent.ExecutionContext.Implicits.global;"

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.8
sbt.version=0.13.13