<commit_before>version in ThisBuild := "0.3.0-SNAPSHOT"

scalaVersion in ThisBuild := "2.11.6"

organization in ThisBuild := "com.github.kxbmap"

publish := {}
publishLocal := {}
publishArtifact := false


lazy val core = project.settings(commonSettings).settings(
  name := "configs-core",
  description := "A Scala wrapper for Typesafe config",
  libraryDependencies ++= Seq(
    "com.typesafe" % "config" % "1.3.0"
  )
)

def extension(id: String): Project = Project(id, file("ext") / id)
  .settings(name := s"configs-$id")
  .settings(commonSettings)
  .dependsOn(core)

lazy val std = extension("std")

lazy val scalikejdbc = extension("scalikejdbc").settings(
  libraryDependencies ++= Seq(
    "org.scalikejdbc" %% "scalikejdbc" % "2.2.6",
    "org.postgresql" % "postgresql" % "9.4-1201-jdbc41" % "test",
    "mysql" % "mysql-connector-java" % "5.1.35" % "test",
    "com.h2database" % "h2" % "1.4.187" % "test",
    "org.hsqldb" % "hsqldb" % "2.3.2" % "test"
  )
)

lazy val scalikejdbcAsync = extension("scalikejdbc-async").settings(
  libraryDependencies ++= Seq(
    "org.scalikejdbc" %% "scalikejdbc-async" % "0.5.5",
    "com.github.mauricio" %% "postgresql-async" % "0.2.16" % "test",
    "com.github.mauricio" %% "mysql-async" % "0.2.16" % "test"
  )
)

lazy val bonecp = extension("bonecp").settings(
  libraryDependencies ++= Seq(
    "com.jolbox" % "bonecp" % "0.8.0.RELEASE"
  )
)

lazy val commonSettings = Seq(
  crossScalaVersions := Seq(scalaVersion.value, "2.10.5"),
  scalacOptions ++= Seq(
    "-deprecation",
    "-unchecked",
    "-feature"
  ),
  libraryDependencies ++= Seq(
    "org.scalatest" %% "scalatest" % "2.2.4" % "test",
    "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"
  ),
  publishMavenStyle := true,
  publishTo := {
    if (isSnapshot.value)
      Some(Opts.resolver.sonatypeSnapshots)
    else
      Some(Opts.resolver.sonatypeStaging)
  },
  licenses := Seq(
    "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")
  ),
  scmInfo := Some(ScmInfo(
    browseUrl = url("http://github.com/kxbmap/configs"),<commit_msg>Add slf4j-simple to test scope<commit_after>version in ThisBuild := "0.3.0-SNAPSHOT"

scalaVersion in ThisBuild := "2.11.6"

organization in ThisBuild := "com.github.kxbmap"

publish := {}
publishLocal := {}
publishArtifact := false


lazy val core = project.settings(commonSettings).settings(
  name := "configs-core",
  description := "A Scala wrapper for Typesafe config",
  libraryDependencies ++= Seq(
    "com.typesafe" % "config" % "1.3.0"
  )
)

def extension(id: String): Project = Project(id, file("ext") / id)
  .settings(name := s"configs-$id")
  .settings(commonSettings)
  .dependsOn(core)

lazy val std = extension("std")

lazy val scalikejdbc = extension("scalikejdbc").settings(
  libraryDependencies ++= Seq(
    "org.scalikejdbc" %% "scalikejdbc" % "2.2.6",
    "org.postgresql" % "postgresql" % "9.4-1201-jdbc41" % "test",
    "mysql" % "mysql-connector-java" % "5.1.35" % "test",
    "com.h2database" % "h2" % "1.4.187" % "test",
    "org.hsqldb" % "hsqldb" % "2.3.2" % "test"
  )
)

lazy val scalikejdbcAsync = extension("scalikejdbc-async").settings(
  libraryDependencies ++= Seq(
    "org.scalikejdbc" %% "scalikejdbc-async" % "0.5.5",
    "com.github.mauricio" %% "postgresql-async" % "0.2.16" % "test",
    "com.github.mauricio" %% "mysql-async" % "0.2.16" % "test"
  )
)

lazy val bonecp = extension("bonecp").settings(
  libraryDependencies ++= Seq(
    "com.jolbox" % "bonecp" % "0.8.0.RELEASE"
  )
)

lazy val commonSettings = Seq(
  crossScalaVersions := Seq(scalaVersion.value, "2.10.5"),
  scalacOptions ++= Seq(
    "-deprecation",
    "-unchecked",
    "-feature"
  ),
  libraryDependencies ++= Seq(
    "org.scalatest" %% "scalatest" % "2.2.4" % "test",
    "org.scalacheck" %% "scalacheck" % "1.12.2" % "test",
    "org.slf4j" % "slf4j-simple" % "1.7.12" % "test"
  ),
  publishMavenStyle := true,
  publishTo := {
    if (isSnapshot.value)
      Some(Opts.resolver.sonatypeSnapshots)
    else
      Some(Opts.resolver.sonatypeStaging)
  },
  licenses := Seq(
    "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")
  ),
  scmInfo := Some(ScmInfo(
    browseUrl = url("http://github.com/kxbmap/configs"),
{'fraction_non_alphanumeric': 0.1911318553092182, 'fraction_numerical': 0.03150525087514586, 'mean_word_length': 3.6135629709364907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1710544', 'n_tokens_mistral': 1746, 'n_tokens_neox': 1672, 'n_words': 289}