Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from bambuchaAdm/scala-cross-build
Browse files Browse the repository at this point in the history
Cross build for scala 2.12
  • Loading branch information
dabd authored Mar 1, 2019
2 parents ec787ed + ef1ebfe commit 34a2b90
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 13 deletions.
31 changes: 23 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
language: scala
scala:
- 2.11.7
jdk:
- oraclejdk8
matrix:
include:
- scala: 2.11.12
env: PLAY_VERSION=2.5
jdk: oraclejdk8
- scala: 2.11.12
env: PLAY_VERSION=2.6
jdk: oraclejdk8
- scala: 2.12.8
env: PLAY_VERSION=2.6
jdk: oraclejdk8

notifications:
email:
recipients:
- platform-engineering@digital.hmrc.gov.uk
before_script:
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6"
- "echo 'deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse' | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list"
- "sudo apt-get update"
- "sudo apt-get install -y mongodb-org=2.6.5 mongodb-org-server=2.6.5 mongodb-org-shell=2.6.5 mongodb-org-mongos=2.6.5 mongodb-org-tools=2.6.5"
- "sudo apt-get install -y mongodb-org"
- "sudo service mongod start"
- "sleep 15" #mongo may not be responded directly. See http://docs.travis-ci.com/user/database-setup/#MongoDB
- "mongo --version"
- "mongo --version"

cache:
directories:
- $HOME/.sbt
- $HOME/.ivy2
- $HOME/.m2
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ lazy val simpleReactiveMongo = Project(libName, file("."))
scalaVersion := "2.11.12",
libraryDependencies ++= LibraryDependencies.compile ++ LibraryDependencies.test,
resolvers += Resolver.typesafeRepo("releases"),
crossScalaVersions := Seq("2.11.12"),
crossScalaVersions := Seq("2.11.12", "2.12.8"),
playCrossCompilationSettings
)
2 changes: 1 addition & 1 deletion project/LibraryDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object LibraryDependencies {

val compile: Seq[ModuleID] = PlayCrossCompilation.dependencies(
shared = Seq(
"com.github.nscala-time" %% "nscala-time" % "2.2.0",
"com.github.nscala-time" %% "nscala-time" % "2.22.0",
"org.reactivemongo" %% "reactivemongo" % "0.16.1"
),
play25 = Seq(
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.16
sbt.version=0.13.18
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "1.13.0")

addSbtPlugin("uk.gov.hmrc" % "sbt-git-versioning" % "1.15.0")

addSbtPlugin("uk.gov.hmrc" % "sbt-artifactory" % "0.13.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-artifactory" % "0.17.0")

addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "0.11.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "0.15.0")

0 comments on commit 34a2b90

Please sign in to comment.