<commit_before>import sbt.{Credentials, Path, _}

val moduleName = "rtp-io-lib"

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")

val root = Project(id = moduleName, base = file("."))
  .enablePlugins(GitVersioning)
  .configs(IntegrationTest)
  .settings(Defaults.itSettings: _*)
  .settings(
    name := moduleName,
    organization := "uk.gov.homeoffice",
    scalaVersion := "2.12.16",
    crossScalaVersions := Seq("2.11.8", "2.12.16")
  )

resolvers ++= Seq(
  "Artifactory Snapshot Realm" at "https://artifactory.digital.homeoffice.gov.uk/artifactory/libs-snapshot-local/",
  "Artifactory Release Realm" at "https://artifactory.digital.homeoffice.gov.uk/artifactory/libs-release-local/",
  "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
  "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
  "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
  "Kamon Repository" at "http://repo.kamon.io"
)

val json4sVersion = "3.6.12"

libraryDependencies ++= Seq(
  "commons-codec" % "commons-codec" % "1.15",
  "com.typesafe" % "config" % "1.4.2",
  "org.json4s" %% "json4s-native" % json4sVersion,
  "org.json4s" %% "json4s-jackson" % json4sVersion,
  "org.json4s" %% "json4s-ext" % json4sVersion,
  "org.json4s" %% "json4s-mongo" % json4sVersion,
  "com.github.fge" % "json-schema-validator" % "2.2.6",
  "com.lihaoyi" %% "pprint" % "0.7.3",
  "com.github.nscala-time" %% "nscala-time" % "2.32.0",
  "org.scalactic" %% "scalactic" % "3.2.13",
  "uk.gov.homeoffice" %% "rtp-test-lib" % "1.6.18-g13a878a"
)

publishTo := {
  val artifactory = sys.env.get("ARTIFACTORY_SERVER").getOrElse("https://artifactory.digital.homeoffice.gov.uk/")
  Some("release" at artifactory + "artifactory/libs-release-local")
}

publishArtifact in(Test, packageBin) := true
publishArtifact in(Test, packageDoc) := true<commit_msg>DPSPS-837: Fix configuration for Scala 2.11<commit_after>import sbt.{Credentials, Path, _}

val moduleName = "rtp-io-lib"

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")

val root = Project(id = moduleName, base = file("."))
  .enablePlugins(GitVersioning)
  .configs(IntegrationTest)
  .settings(Defaults.itSettings: _*)
  .settings(
    name := moduleName,
    organization := "uk.gov.homeoffice",
    scalaVersion := "2.12.16",
    crossScalaVersions := Seq("2.11.8", "2.12.16")
  )

resolvers ++= Seq(
  "Artifactory Snapshot Realm" at "https://artifactory.digital.homeoffice.gov.uk/artifactory/libs-snapshot-local/",
  "Artifactory Release Realm" at "https://artifactory.digital.homeoffice.gov.uk/artifactory/libs-release-local/",
  "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
  "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
  "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
  "Kamon Repository" at "http://repo.kamon.io"
)

val json4sVersion = "3.6.12"

libraryDependencies ++= Seq(
  "ch.qos.logback" % "logback-classic" % "1.4.0",
  "commons-codec" % "commons-codec" % "1.15",
  "com.typesafe" % "config" % "1.4.2",
  "org.json4s" %% "json4s-native" % json4sVersion,
  "org.json4s" %% "json4s-jackson" % json4sVersion,
  "org.json4s" %% "json4s-ext" % json4sVersion,
  "org.json4s" %% "json4s-mongo" % json4sVersion,
  "com.github.fge" % "json-schema-validator" % "2.2.6",
  "com.lihaoyi" %% "pprint" % "0.7.3",
  "com.github.nscala-time" %% "nscala-time" % "2.32.0",
  "org.scalactic" %% "scalactic" % "3.2.13",
  "uk.gov.homeoffice" %% "rtp-test-lib" % "1.6.18-g13a878a"
)

publishTo := {
  val artifactory = sys.env.get("ARTIFACTORY_SERVER").getOrElse("https://artifactory.digital.homeoffice.gov.uk/")
  Some("release" at artifactory + "artifactory/libs-release-local")
}

publishArtifact in(Test, packageBin) := true
publishArtifact in(Test, packageDoc) := true
{'fraction_non_alphanumeric': 0.18951406649616367, 'fraction_numerical': 0.03350383631713555, 'mean_word_length': 4.357534246575343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '1934613', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1535, 'n_words': 229}