<commit_before>import com.typesafe.sbt.web.SbtWeb
import sbt.Keys._
import sbt._
import scoverage.ScoverageSbtPlugin
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin._
import play.routes.compiler.StaticRoutesGenerator
import play.sbt.routes.RoutesKeys.routesGenerator
import com.typesafe.sbt.web.SbtWeb.autoImport._
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin
import uk.gov.hmrc.versioning.SbtGitVersioning
import uk.gov.hmrc.versioning.SbtGitVersioning.autoImport.majorVersion

trait MicroService {

  import uk.gov.hmrc.DefaultBuildSettings.{defaultSettings, scalaSettings, targetJvm}
  import uk.gov.hmrc._


  val appName: String

  val appDependencies : Seq[ModuleID]
  lazy val plugins : Seq[Plugins] = Seq(SbtAutoBuildPlugin, SbtGitVersioning, SbtDistributablesPlugin, play.sbt.PlayScala, SbtWeb, SbtArtifactory)

  lazy val scoverageSettings = {
    import ScoverageSbtPlugin._

    Seq(
      ScoverageKeys.coverageExcludedPackages := "<empty>;Reverse.*;models/.data/..*;views.*;config.*;models.*;" +
        ".*(AuthService|BuildInfo|Routes).*",
      ScoverageKeys.coverageMinimum := 75,
      ScoverageKeys.coverageFailOnMinimum := false,
      ScoverageKeys.coverageHighlighting := true
    )

  }

  val wartRemovedExcludedClasses = Seq(
    "app.Routes", "prod.Routes", "app.routes", "prod.routes", "uk.gov.hmrc.BuildInfo",
    "controllers.routes", "controllers.javascript", "controllers.ref"
  )

  lazy val microservice = Project(appName, file("."))
    .enablePlugins(plugins : _*)
    .settings(scoverageSettings : _*)
    .settings(scalaSettings: _*)
    .settings(publishingSettings: _*)
    .settings(defaultSettings(): _*)
    .settings(
      libraryDependencies ++= appDependencies,
      retrieveManaged := true,
      routesGenerator := StaticRoutesGenerator,
      unmanagedResourceDirectories in Assets += baseDirectory.value / "app" / "assets",
      excludeFilter in Assets := "js*" || "sass*",
      JavaScriptBuild.javaScriptUiSettings
    )
    .settings(
      resolvers := Seq(
        Resolver.bintrayRepo("hmrc", "releases"),
        Resolver.typesafeRepo("releases"),
        Resolver.jcenterRepo
      )
    )
    .settings(majorVersion := 7)

}<commit_msg>DDCNLS-5415: Added the artifactory resolver<commit_after>import com.typesafe.sbt.web.SbtWeb
import sbt.Keys._
import sbt._
import scoverage.ScoverageSbtPlugin
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin._
import play.routes.compiler.StaticRoutesGenerator
import play.sbt.routes.RoutesKeys.routesGenerator
import com.typesafe.sbt.web.SbtWeb.autoImport._
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin
import uk.gov.hmrc.versioning.SbtGitVersioning
import uk.gov.hmrc.versioning.SbtGitVersioning.autoImport.majorVersion

trait MicroService {

  import uk.gov.hmrc.DefaultBuildSettings.{defaultSettings, scalaSettings, targetJvm}
  import uk.gov.hmrc._


  val appName: String

  val appDependencies : Seq[ModuleID]
  lazy val plugins : Seq[Plugins] = Seq(SbtAutoBuildPlugin, SbtGitVersioning, SbtDistributablesPlugin, play.sbt.PlayScala, SbtWeb, SbtArtifactory)

  lazy val scoverageSettings = {
    import ScoverageSbtPlugin._

    Seq(
      ScoverageKeys.coverageExcludedPackages := "<empty>;Reverse.*;models/.data/..*;views.*;config.*;models.*;" +
        ".*(AuthService|BuildInfo|Routes).*",
      ScoverageKeys.coverageMinimum := 75,
      ScoverageKeys.coverageFailOnMinimum := false,
      ScoverageKeys.coverageHighlighting := true
    )

  }

  val wartRemovedExcludedClasses = Seq(
    "app.Routes", "prod.Routes", "app.routes", "prod.routes", "uk.gov.hmrc.BuildInfo",
    "controllers.routes", "controllers.javascript", "controllers.ref"
  )

  lazy val microservice = Project(appName, file("."))
    .enablePlugins(plugins : _*)
    .settings(scoverageSettings : _*)
    .settings(scalaSettings: _*)
    .settings(publishingSettings: _*)
    .settings(defaultSettings(): _*)
    .settings(
      libraryDependencies ++= appDependencies,
      retrieveManaged := true,
      routesGenerator := StaticRoutesGenerator,
      unmanagedResourceDirectories in Assets += baseDirectory.value / "app" / "assets",
      excludeFilter in Assets := "js*" || "sass*",
      JavaScriptBuild.javaScriptUiSettings
    )
    .settings(
      resolvers := Seq(
        Resolver.bintrayRepo("hmrc", "releases"),
        "hmrc-releases" at "https://artefacts.tax.service.gov.uk/artifactory/hmrc-releases/",
        Resolver.typesafeRepo("releases"),
        Resolver.jcenterRepo
      )
    )
    .settings(majorVersion := 7)

}
{'fraction_non_alphanumeric': 0.11948449104412408, 'fraction_numerical': 0.00218435998252512, 'mean_word_length': 4.133408071748879, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '90499', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1475, 'n_words': 227}