Skip to content

Commit

Permalink
Merge pull request #70 from bambuchaAdm/scala-cross-build
Browse files Browse the repository at this point in the history
Scala cross build
  • Loading branch information
konradwudkowski authored Feb 27, 2019
2 parents 70ec34f + 4f91fae commit 1486780
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 19 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
sudo: false
language: scala
scala:
- 2.11.8
jdk:
- oraclejdk8

matrix:
include:
- scala: 2.11.12
env: PLAY_VERSION=2.5
- scala: 2.11.12
env: PLAY_VERSION=2.6
- scala: 2.12.8
env: PLAY_VERSION=2.6

cache:
directories:
- $HOME/.ivy2/cache
Expand All @@ -26,4 +33,4 @@ script:

# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lazy val library = Project(name, file("."))
makePublicallyAvailableOnBintray := true
).settings(
scalaVersion := "2.11.12",
crossScalaVersions := Seq("2.11.12"),
crossScalaVersions := Seq("2.11.12", "2.12.8"),
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
PlayCrossCompilation.playCrossCompilationSettings,
scalacOptions ++= Seq("-deprecation"),
Expand Down
13 changes: 8 additions & 5 deletions project/AppDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ object AppDependencies {
shared = Seq(
"com.typesafe" % "config" % "1.3.3",
"org.slf4j" % "slf4j-api" % "1.7.25",
// empty http-core and http-verbs-play-25 added to force eviction
// as classes from these two libs have been inlined in http-verbs
"uk.gov.hmrc" %% "http-core" % "2.1.0",
"uk.gov.hmrc" %% "http-verbs-play-25" % "1.0.0",
// empty http-core added to force eviction
// as classes from this lib have been inlined in http-verbs
"uk.gov.hmrc" %% "http-core" % "2.2.0",
// force dependencies due to security flaws found in jackson-databind < 2.9.x using XRay
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.8",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.8",
Expand All @@ -43,7 +42,11 @@ object AppDependencies {
// force dependencies due to security flaws found in xercesImpl 2.11.0
// only applies to play 2.5 since it was removed from play 2.6
// https://github.com/playframework/playframework/blob/master/documentation/manual/releases/release26/migration26/Migration26.md#xercesimpl-removal
"xerces" % "xercesImpl" % "2.12.0"
"xerces" % "xercesImpl" % "2.12.0",

// empty http-verbs-play-25 added to force eviction
// as classes from this lib have been inlined in http-verbs
"uk.gov.hmrc" %% "http-verbs-play-25" % "1.0.0"
),
play26 = Seq(
"com.typesafe.play" %% "play-json" % "2.6.9",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# limitations under the License.
#

sbt.version=0.13.16
sbt.version=0.13.17
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ addSbtPlugin("uk.gov.hmrc" % "sbt-git-versioning" % "1.15.0")

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

addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "0.12.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "0.13.0")
2 changes: 1 addition & 1 deletion src/main/play-26/resources/reference.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 HM Revenue & Customs
# Copyright 2019 HM Revenue & Customs
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/play-26/uk/gov/hmrc/play/http/ws/WSPost.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/play-26/uk/gov/hmrc/play/http/ws/WSRequest.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2018 HM Revenue & Customs
* Copyright 2019 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 1486780

Please sign in to comment.