|
| 1 | +name := "RedisClient" |
| 2 | + |
| 3 | +lazy val redisClient = (project in file(".")).settings(coreSettings : _*) |
| 4 | + |
| 5 | +lazy val commonSettings: Seq[Setting[_]] = Seq( |
| 6 | + organization := "net.debasishg", |
| 7 | + version := "3.5", |
| 8 | + scalaVersion := "2.11.12", |
| 9 | + crossScalaVersions := Seq("2.12.4", "2.11.12", "2.10.7"), |
| 10 | + |
| 11 | + scalacOptions in Compile ++= Seq( "-unchecked", "-feature", "-language:postfixOps", "-deprecation" ), |
| 12 | + |
| 13 | + resolvers ++= Seq( |
| 14 | + "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/" |
| 15 | + ) |
| 16 | +) |
| 17 | + |
| 18 | +lazy val coreSettings = commonSettings ++ Seq( |
| 19 | + name := "RedisClient", |
| 20 | + libraryDependencies ++= Seq( |
| 21 | + "commons-pool" % "commons-pool" % "1.6", |
| 22 | + "org.slf4j" % "slf4j-api" % "1.7.25", |
| 23 | + "org.slf4j" % "slf4j-log4j12" % "1.7.25" % "provided", |
| 24 | + "log4j" % "log4j" % "1.2.17" % "provided", |
| 25 | + "junit" % "junit" % "4.12" % "test", |
| 26 | + "org.scalatest" %% "scalatest" % "3.0.4" % "test"), |
| 27 | + |
| 28 | + parallelExecution in Test := false, |
| 29 | + publishTo := version { (v: String) => |
| 30 | + val nexus = "https://oss.sonatype.org/" |
| 31 | + if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") |
| 32 | + else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
| 33 | + }.value, |
| 34 | + credentials += Credentials(Path.userHome / ".sbt" / "sonatype.credentials"), |
| 35 | + publishMavenStyle := true, |
| 36 | + publishArtifact in Test := false, |
| 37 | + pomIncludeRepository := { repo => false }, |
| 38 | + pomExtra := ( |
| 39 | + <url>https://github.com/debasishg/scala-redis</url> |
| 40 | + <licenses> |
| 41 | + <license> |
| 42 | + <name>Apache 2.0 License</name> |
| 43 | + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 44 | + <distribution>repo</distribution> |
| 45 | + </license> |
| 46 | + </licenses> |
| 47 | + <scm> |
| 48 | + <url>git@github.com:debasishg/scala-redis.git</url> |
| 49 | + <connection>scm:git:git@github.com:debasishg/scala-redis.git</connection> |
| 50 | + </scm> |
| 51 | + <developers> |
| 52 | + <developer> |
| 53 | + <id>debasishg</id> |
| 54 | + <name>Debasish Ghosh</name> |
| 55 | + <url>http://debasishg.blogspot.com</url> |
| 56 | + </developer> |
| 57 | + </developers>), |
| 58 | + unmanagedResources in Compile += baseDirectory.map( _ / "LICENSE" ).value |
| 59 | +) |
0 commit comments