Skip to content

Commit

Permalink
Merge pull request #155 from barkhorn/scala2.12
Browse files Browse the repository at this point in the history
build with Scala 2.12
  • Loading branch information
barkhorn authored Nov 20, 2016
2 parents a93c26f + 72b2719 commit dd4cefa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
language: scala

scala:
- "2.11.1"
- "2.11.8"
- "2.12.0"

jdk:
- oraclejdk8
- oraclejdk7

matrix:
exclude:
- scala: "2.12.0"
jdk: oraclejdk7

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ package org.scalamock.specs2

import org.specs2.execute.{ AsResult, Failure, FailureException, Result }
import org.specs2.main.ArgumentsShortcuts
import org.specs2.specification.{ AroundExample, Fragments, SpecificationStructure }
import org.specs2.specification.Fragment
import org.specs2.mutable.FragmentsBuilder
import org.specs2.specification._
import org.specs2.mutable.Around
import org.scalamock.MockFactoryBase

Expand Down
12 changes: 6 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import Keys._
import sbt.inc.Analysis

object BuildSettings {
val buildVersion = "3.3.0"
val buildScalaVersion = "2.11.8"
val buildVersion = "3.4.0"
val buildScalaVersion = "2.12.0"

val buildSettings = Defaults.coreDefaultSettings ++ Seq(
organization := "org.scalamock",
Expand Down Expand Up @@ -93,12 +93,12 @@ object ShellPrompt {

object Dependencies {
val scalatest = "org.scalatest" %% "scalatest" % "3.0.0"
val specs2 = "org.specs2" %% "specs2" % "2.4.16"
val specs2 = "org.specs2" %% "specs2-core" % "3.8.6"
val reflect = "org.scala-lang" % "scala-reflect" % BuildSettings.buildScalaVersion

// Specs2 and ScalaTest use different scala-xml versions
// and this caused problems with referencing class org.scalatest.events.Event
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.0.3" % "test"
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.0.6" % "test"
}

object ScalaMockBuild extends Build {
Expand All @@ -112,8 +112,8 @@ object ScalaMockBuild extends Build {
compile in Compile := Analysis.Empty,
publishArtifact in (Compile, packageBin) := false,
publishArtifact in (Compile, packageSrc) := false,
sources in Compile <<= (Seq(core, scalatestSupport, specs2Support).map(sources in Compile in _).join).map(_.flatten),
libraryDependencies ++= Seq(reflect, scalatest, specs2)
sources in Compile <<= (Seq(core, scalatestSupport).map(sources in Compile in _).join).map(_.flatten),
libraryDependencies ++= Seq(reflect, scalatest)
)) aggregate(core, core_tests, scalatestSupport, specs2Support, examples)

lazy val core = Project(
Expand Down

0 comments on commit dd4cefa

Please sign in to comment.