Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hmrc/play-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.11.0
Choose a base ref
...
head repository: hmrc/play-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 102 files changed
  • 4 contributors

Commits on Jan 16, 2024

  1. PLATUI-2716: play-ui has release for Play 2.9 (#170)

    PLATUI-2716: play-ui has release for Play 2.9
    ---------
    
    Co-authored-by: Oscar Duignan <100650+oscarduignan@users.noreply.github.com>
    Co-authored-by: JoPintoPaul <joanna.pinto.paul@digital.hmrc.gov.uk>
    3 people authored Jan 16, 2024
    Copy the full SHA
    28b3b76 View commit details
  2. Copy the full SHA
    9de5b79 View commit details

Commits on Jan 31, 2024

  1. Copy the full SHA
    bc5deba View commit details
Showing with 155 additions and 521 deletions.
  1. +19 −26 build.sbt
  2. +0 −52 project/LibDependencies.scala
  3. +0 −4 project/PlayCrossCompilation.scala
  4. +1 −1 project/build.properties
  5. +2 −4 project/plugins.sbt
  6. +1 −0 repository.yaml
  7. +1 −1 src/main/resources/reference.conf
  8. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/ContinueUrl.scala
  9. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/NonBlankString.scala
  10. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/Origin.scala
  11. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/PositiveInteger.scala
  12. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/QueryBinders.scala
  13. +1 −1 src/main/scala/uk/gov/hmrc/play/binders/SimpleObjectBinder.scala
  14. +1 −1 src/main/scala/uk/gov/hmrc/play/config/AccessibilityStatementConfig.scala
  15. +1 −1 src/main/scala/uk/gov/hmrc/play/config/AssetsConfig.scala
  16. +1 −1 src/main/scala/uk/gov/hmrc/play/config/GTMConfig.scala
  17. +1 −1 src/main/scala/uk/gov/hmrc/play/config/OptimizelyConfig.scala
  18. +1 −1 src/main/scala/uk/gov/hmrc/play/config/TrackingConsentConfig.scala
  19. +0 −39 src/main/scala/uk/gov/hmrc/play/deprecatedPlay26Helpers.scala
  20. +1 −1 src/main/scala/uk/gov/hmrc/play/mappers/DateTuple.scala
  21. +1 −1 src/main/scala/uk/gov/hmrc/play/mappers/StopOnFirstFail.scala
  22. +1 −1 src/main/scala/uk/gov/hmrc/play/validators/Validators.scala
  23. +0 −78 src/main/scala/uk/gov/hmrc/play/views/html/helpers/deprecatedPlay26Helpers.scala
  24. +0 −85 src/main/scala/uk/gov/hmrc/play/views/html/layouts/deprecatedPlay26Helpers.scala
  25. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/formatting/Dates.scala
  26. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/formatting/Money.scala
  27. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/formatting/Strings.scala
  28. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/Address.scala.html
  29. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/AttorneyRegime.scala
  30. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFields.scala.html
  31. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFieldsFreeInline.scala.html
  32. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFieldsFreeInlineLegend.scala.html
  33. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFieldsFreeYear.scala.html
  34. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFieldsFreeYearInline.scala.html
  35. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/DateFieldsInline.scala.html
  36. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/Dropdown.scala.html
  37. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/ErrorInline.scala.html
  38. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/ErrorNotifications.scala.html
  39. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/ErrorSummary.scala.html
  40. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/FieldGroup.scala.html
  41. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/FormWithCSRF.scala.html
  42. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/Input.scala.html
  43. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/InputRadioGroup.scala.html
  44. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/RenderableMessage.scala
  45. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/ReportAProblemLink.scala.html
  46. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/SingleCheckbox.scala.html
  47. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/TextArea.scala.html
  48. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/helpers/model.scala
  49. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/Article.scala.html
  50. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/AttorneyBanner.scala.html
  51. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/BetaBanner.scala.html
  52. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/EuExitLinks.scala.html
  53. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/Footer.scala.html
  54. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/FooterLinks.scala.html
  55. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/GTMSnippet.scala.html
  56. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/Head.scala.html
  57. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/HeadWithTrackingConsent.scala.html
  58. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/HeaderNav.scala.html
  59. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/LoginStatus.scala.html
  60. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/MainContent.scala.html
  61. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/MainContentHeader.scala.html
  62. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/ServiceInfo.scala.html
  63. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/Sidebar.scala.html
  64. +1 −1 src/main/twirl/uk/gov/hmrc/play/views/layouts/TrackingConsentSnippet.scala.html
  65. +1 −1 src/test/scala/uk/gov/hmrc/play/JsoupHelpers.scala
  66. +1 −1 src/test/scala/uk/gov/hmrc/play/MessagesSupport.scala
  67. +1 −1 src/test/scala/uk/gov/hmrc/play/binders/ContinueUrlSpec.scala
  68. +1 −1 src/test/scala/uk/gov/hmrc/play/binders/NonBlankStringSpec.scala
  69. +1 −1 src/test/scala/uk/gov/hmrc/play/binders/OriginSpec.scala
  70. +1 −1 src/test/scala/uk/gov/hmrc/play/binders/PositiveIntegerSpec.scala
  71. +1 −1 src/test/scala/uk/gov/hmrc/play/binders/SimpleObjectBinderSpec.scala
  72. +1 −1 src/test/scala/uk/gov/hmrc/play/language/WelshMessagesSpec.scala
  73. +1 −1 src/test/scala/uk/gov/hmrc/play/mappers/DateTupleSpec.scala
  74. +1 −1 src/test/scala/uk/gov/hmrc/play/validators/ValidatorsSpec.scala
  75. +1 −1 src/test/scala/uk/gov/hmrc/play/views/config/AccessibilityStatementConfigSpec.scala
  76. +1 −1 src/test/scala/uk/gov/hmrc/play/views/config/GTMConfigSpec.scala
  77. +1 −1 src/test/scala/uk/gov/hmrc/play/views/config/TrackingConsentConfigSpec.scala
  78. +1 −1 src/test/scala/uk/gov/hmrc/play/views/formatting/DatesSpec.scala
  79. +1 −1 src/test/scala/uk/gov/hmrc/play/views/formatting/StringsSpec.scala
  80. +0 −49 src/test/scala/uk/gov/hmrc/play/views/helpers/BackwardsCompatibilityDIAndStaticSpec.scala
  81. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/CSRFSpec.scala
  82. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/DateFieldsSpec.scala
  83. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/DropDownSpec.scala
  84. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/FormWithCSRFSpec.scala
  85. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/InputRadioGroupSpec.scala
  86. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/InputSpec.scala
  87. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/MoneyPoundsSpec.scala
  88. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/RenderableMoneyMessageSpec.scala
  89. +1 −1 src/test/scala/uk/gov/hmrc/play/views/helpers/SingleCheckboxSpec.scala
  90. +0 −46 src/test/scala/uk/gov/hmrc/play/views/layouts/BackwardsCompatibilityDIAndStaticSpec.scala
  91. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/BetaBannerSpec.scala
  92. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/EuExitLinksSpec.scala
  93. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/FooterLinksSpec.scala
  94. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/FooterSpec.scala
  95. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/GTMSnippetSpec.scala
  96. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/HeadSpec.scala
  97. +24 −25 src/test/scala/uk/gov/hmrc/play/views/layouts/HeadWithTrackingConsentSpec.scala
  98. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/LoginStatusSpec.scala
  99. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/ServiceInfoSpec.scala
  100. +18 −22 src/test/scala/uk/gov/hmrc/play/views/layouts/TrackingConsentSnippetSpec.scala
  101. +1 −1 src/test/scala/uk/gov/hmrc/play/views/layouts/test/TestConfigs.scala
  102. +2 −2 src/test/scala/uk/gov/hmrc/play/views/package.scala
45 changes: 19 additions & 26 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import uk.gov.hmrc.playcrosscompilation.PlayVersion
val scala2_13 = "2.13.12"

val scala2_12 = "2.12.15"
val scala2_13 = "2.13.7"

val appName = "play-ui"
val silencerVersion = "1.7.7"

lazy val root = Project(appName, file("."))
lazy val root = Project("play-ui-play-30", file("."))
.enablePlugins(SbtTwirl)
.disablePlugins(JUnitXmlReportPlugin) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
majorVersion := 9,
scalaVersion := scala2_12,
crossScalaVersions := Seq(scala2_12, scala2_13),
libraryDependencies ++= LibDependencies.libDependencies
majorVersion := 11,
scalaVersion := scala2_13,
crossScalaVersions := Seq(scala2_13),
libraryDependencies ++= Seq(
"org.playframework" %% "play" % "3.0.0",
"org.playframework" %% "play-filters-helpers" % "3.0.0",
"joda-time" % "joda-time" % "2.12.5",
"org.joda" % "joda-convert" % "2.0.2",
"org.apache.commons" % "commons-text" % "1.9",
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"org.pegdown" % "pegdown" % "1.6.0" % Test,
"org.jsoup" % "jsoup" % "1.11.3" % Test,
"org.playframework" %% "play-test" % "3.0.0" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test
)
)
.settings(
TwirlKeys.templateImports := Seq(
@@ -28,21 +33,9 @@ lazy val root = Project(appName, file("."))
"_root_.play.twirl.api.TwirlFeatureImports._",
"_root_.play.twirl.api.TwirlHelperImports._"
),
PlayCrossCompilation.playCrossCompilationSettings,
isPublicArtefact := true,
// ***************
// Use the silencer plugin to suppress warnings from unused imports in compiled twirl templates
scalacOptions += "-P:silencer:pathFilters=views;routes",
libraryDependencies ++= Seq(
compilerPlugin("com.github.ghik" % "silencer-plugin" % silencerVersion cross CrossVersion.full),
"com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full
),
excludeFilter in unmanagedSources := {
if (PlayCrossCompilation.playVersion == PlayVersion.Play28)
"deprecatedPlay26Helpers.scala" || "BackwardsCompatibilityDIAndStaticSpec.scala"
else ""
}
// ***************
scalacOptions += "-Wconf:src=routes/.*:s",
scalacOptions += "-Wconf:src=views/.*:s"
)
.settings(TwirlKeys.constructorAnnotations += "@javax.inject.Inject()")
.settings(unmanagedSourceDirectories in sbt.Compile += baseDirectory.value / "src/main/twirl")
52 changes: 0 additions & 52 deletions project/LibDependencies.scala

This file was deleted.

4 changes: 0 additions & 4 deletions project/PlayCrossCompilation.scala

This file was deleted.

2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -14,4 +14,4 @@
# limitations under the License.
#

sbt.version=1.5.8
sbt.version=1.9.7
6 changes: 2 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -3,10 +3,8 @@ resolvers += Resolver.url("HMRC-open-artefacts-ivy2", url("https://open.artefact
Resolver.ivyStylePatterns
)

addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.6.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.19.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.5.1")

addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "2.3.0")
addSbtPlugin("org.playframework.twirl" % "sbt-twirl" % "2.0.1")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")
1 change: 1 addition & 0 deletions repository.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
repoVisibility: public_0C3F0CE3E6E6448FAD341E7BFA50FCD333E06A20CFF05FCACE61154DDBBADF71
deprecated: true
description: Core for HMRC's UI, incl. formatters, validators, mappers and helper templates
2 changes: 1 addition & 1 deletion src/main/resources/reference.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 HM Revenue & Customs
# Copyright 2024 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.
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/binders/ContinueUrl.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/binders/Origin.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/binders/QueryBinders.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/config/AssetsConfig.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/config/GTMConfig.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
39 changes: 0 additions & 39 deletions src/main/scala/uk/gov/hmrc/play/deprecatedPlay26Helpers.scala

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/scala/uk/gov/hmrc/play/mappers/DateTuple.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 HM Revenue & Customs
* Copyright 2024 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.

This file was deleted.

Loading