Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prepare for release
  • Loading branch information
nigozi committed May 1, 2018
1 parent 345ed6f commit 7cc4443
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 43 deletions.
8 changes: 1 addition & 7 deletions .gitignore
@@ -1,8 +1,2 @@
.idea/
dist/*
**/target/
project/plugins/project/
**/project/target/
.cache
.lib/
**/project/
**/target/
93 changes: 57 additions & 36 deletions build.sbt
@@ -1,11 +1,25 @@
organization := "nigo.io"
import sbt.url

name := "flag4s"

version := "0.1"

scalacOptions in ThisBuild += "-Ypartial-unification"


licenses := List("MIT" -> url("http://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/nigozi/flag4s"))
scmInfo := Some(ScmInfo(url("https://github.com/nigozi/flag4s"), "git@github.com:nigozi/flag4s.git"))
developers := List(Developer("nigozi", "Nima Goodarzi", "nima@nigo.io", url("https://github.com/nigozi")))

lazy val commonSettings = Seq (
organization := "io.nigo",
version := "0.1.0-SNAPSHOT",
publishTo := sonatypePublishTo.value,
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"),
publishArtifact in Test := false,
publishMavenStyle := true,
isSnapshot := true
)

val catsVersion = "1.1.0"
val circeVersion = "0.9.3"
val http4sVersion = "0.18.9"
Expand All @@ -24,6 +38,7 @@ val testDependencies = Seq(

lazy val root = project
.in(file("."))
.settings(commonSettings)
.aggregate(
core,
http4s,
Expand All @@ -33,50 +48,56 @@ lazy val root = project
lazy val core = project
.in(file("core"))
.settings(
description := "flag4s core",
name := "flag4s-core",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"com.github.pureconfig" %% "pureconfig" % "0.9.1",
"net.debasishg" %% "redisclient" % "3.5"
)
commonSettings ++ List(
description := "flag4s core",
name := "flag4s-core",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"com.github.pureconfig" %% "pureconfig" % "0.9.1",
"net.debasishg" %% "redisclient" % "3.5"
)
)
)

lazy val http4s = project
.in(file("http4s-api"))
.dependsOn(core % "compile->compile;test->test")
.settings(
description := "flag4s api for http4s",
name := "flag4s-api-http4s",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion
commonSettings ++ List(
description := "flag4s api for http4s",
name := "flag4s-api-http4s",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"org.http4s" %% "http4s-core" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion
)
)
)

lazy val akka = project
.in(file("akka-http-api"))
.dependsOn(core % "compile->compile;test->test")
.settings(
description := "akka http api for http4s",
name := "flag4s-api-akka-http",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"com.typesafe.akka" %% "akka-http" % "10.1.1",
"de.heikoseeberger" %% "akka-http-circe" % "1.20.1",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.1" % Test,
)
commonSettings ++ List(
description := "akka http api for http4s",
name := "flag4s-api-akka-http",
libraryDependencies ++=
commonDependencies ++
testDependencies ++
Seq(
"com.typesafe.akka" %% "akka-http" % "10.1.1",
"de.heikoseeberger" %% "akka-http-circe" % "1.20.1",
"com.typesafe.akka" %% "akka-http-testkit" % "10.1.1" % Test,
)
)
)
3 changes: 3 additions & 0 deletions project/plugins.sbt
@@ -0,0 +1,3 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.8")
1 change: 1 addition & 0 deletions version.sbt
@@ -0,0 +1 @@
version in ThisBuild := "0.1.0-SNAPSHOT"

0 comments on commit 7cc4443

Please sign in to comment.