Skip to content

Commit

Permalink
PLATUI-1199: Removed Bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
JoPintoPaul committed Jun 3, 2021
1 parent 6364bc9 commit 187a242
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ limitations under the License.
play-ui
=======

[ ![Download](https://api.bintray.com/packages/hmrc/releases/play-ui/images/download.svg) ](https://bintray.com/hmrc/releases/play-ui/_latestVersion)

Micro-library containing core for HMRC's Play UI:

### Formatters
Expand Down Expand Up @@ -105,12 +103,19 @@ If using Play 2.7 and CSPFilter, the nonce can be passed to tracking consent as

## Adding to your service

Include the following dependency in your SBT build
Add the library to the project dependencies:

``` scala~~~~
libraryDependencies += "uk.gov.hmrc" %% "play-language" % "[INSERT VERSION]"
```

Ensure to add the resolvers to your `plugins.sbt`:

```scala
resolvers += Resolver.bintrayRepo("hmrc", "releases")
resolvers += MavenRepository("HMRC-open-artefacts-maven2", "https://open.artefacts.tax.service.gov.uk/maven2")
resolvers += Resolver.url("HMRC-open-artefacts-ivy", url("https://open.artefacts.tax.service.gov.uk/ivy2"))(Resolver.ivyStylePatterns)

libraryDependencies += "uk.gov.hmrc" %% "play-ui" % "x.x.x"
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "[INSERT VERSION 3.0.0 OR HIGHER]")
```

If you require either [head](https://github.com/hmrc/play-ui/blob/master/src/main/twirl/uk/gov/hmrc/play/views/layouts/head.scala.html) or [footer](https://github.com/hmrc/play-ui/blob/master/src/main/twirl/uk/gov/hmrc/play/views/layouts/footer.scala.html) you'll also need to add some config to your `application.conf` file in order to build the complete urls for assets:
Expand Down
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ lazy val root = Project(appName, file("."))
libraryDependencies ++= LibDependencies.libDependencies,
resolvers :=
Seq(
"HMRC Releases" at "https://dl.bintray.com/hmrc/releases",
"typesafe-releases" at "https://repo.typesafe.com/typesafe/releases/"
)
)
Expand All @@ -31,7 +30,7 @@ lazy val root = Project(appName, file("."))
"_root_.play.twirl.api.TwirlHelperImports._"
),
PlayCrossCompilation.playCrossCompilationSettings,
makePublicallyAvailableOnBintray := true,
isPublicArtefact := true,
// ***************
// Use the silencer plugin to suppress warnings from unused imports in compiled twirl templates
scalacOptions += "-P:silencer:pathFilters=views;routes",
Expand Down
18 changes: 6 additions & 12 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
resolvers ++= Seq(
Resolver.url("hmrc-sbt-plugin-releases", url("https://dl.bintray.com/hmrc/sbt-plugin-releases"))(
Resolver.ivyStylePatterns
),
"HMRC Releases" at "https://dl.bintray.com/hmrc/releases",
"Typesafe Releases" at "https://repo.typesafe.com/typesafe/releases/"
resolvers += MavenRepository("HMRC-open-artefacts-maven2", "https://open.artefacts.tax.service.gov.uk/maven2")
resolvers += Resolver.url("HMRC-open-artefacts-ivy2", url("https://open.artefacts.tax.service.gov.uk/ivy2"))(
Resolver.ivyStylePatterns
)
resolvers += Resolver.typesafeRepo("releases")

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

addSbtPlugin("uk.gov.hmrc" % "sbt-git-versioning" % "2.2.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.0.0")

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

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

addSbtPlugin("uk.gov.hmrc" % "sbt-artifactory" % "1.13.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-play-cross-compilation" % "2.2.0")

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")

0 comments on commit 187a242

Please sign in to comment.