import Common._

val commonSettings = Seq(
  sbtPlugin := true,
  scalaVersion := scalaVersionString,
  organization := organisationString,
  organizationName := organisationNameString,
  scalacOptions := scalaOptionsSeq,
  publishTo.<<=(publishResolver),
  credentials += sbtCredentials,
  licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
  BintrayCredentials.bintrayCredentialsTask,
  bintray.Keys.bintrayOrganization := None
) //++ bintrayPublishSettings // Comment this in before pushing to GitHub so it gets automatically built and published to bintray

lazy val microservicesSandbox = Project("microservices-sandbox", file("microservices-sandbox"))
  .settings(version := "1.1")
  .settings(commonSettings:_*)
  .settings(
    libraryDependencies ++= Seq(
      "commons-io" % "commons-io" % "2.4" withSources() withJavadoc(),
      "com.typesafe" % "config" % "1.2.1" withSources() withJavadoc()
    )
  )

lazy val buildDetailsGenerator = Project("build-details-generator", file("build-details-generator"))
  .settings(version := "1.1")
  .settings(commonSettings:_*)

publish := {}

import Common._

val commonSettings = Seq(
  sbtPlugin := true,
  scalaVersion := scalaVersionString,
  organization := organisationString,
  organizationName := organisationNameString,
  scalacOptions := scalaOptionsSeq,
  publishTo.<<=(publishResolver),
  credentials += sbtCredentials,
  licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
  BintrayCredentials.bintrayCredentialsTask
) ++ Seq (
  bintray.Keys.bintrayOrganization := None,
  bintray.Keys.repository := "maven"
) //++ bintrayPublishSettings // Comment this in before pushing to GitHub so it gets automatically built and published to bintray

lazy val microservicesSandbox = project.in(file("microservices-sandbox"))
  .settings(name := "microservices-sandbox")
  .settings(version := "1.1")
  .settings(commonSettings:_*)
  .settings(
    libraryDependencies ++= Seq(
      "commons-io" % "commons-io" % "2.4" withSources() withJavadoc(),
      "com.typesafe" % "config" % "1.2.1" withSources() withJavadoc()
    )
  )
  .settings(publishMavenStyle := true)

lazy val buildDetailsGenerator = project.in(file("build-details-generator"))
  .settings(name := "build-details-generator")
  .settings(version := "1.1")
  .settings(commonSettings:_*)
  .settings(publishMavenStyle := true)

publish := {}

--- 
+++ 
@@ -9,14 +9,11 @@
   publishTo.<<=(publishResolver),
   credentials += sbtCredentials,
   licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
-  BintrayCredentials.bintrayCredentialsTask
-) ++ Seq (
-  bintray.Keys.bintrayOrganization := None,
-  bintray.Keys.repository := "maven"
+  BintrayCredentials.bintrayCredentialsTask,
+  bintray.Keys.bintrayOrganization := None
 ) //++ bintrayPublishSettings // Comment this in before pushing to GitHub so it gets automatically built and published to bintray
 
-lazy val microservicesSandbox = project.in(file("microservices-sandbox"))
-  .settings(name := "microservices-sandbox")
+lazy val microservicesSandbox = Project("microservices-sandbox", file("microservices-sandbox"))
   .settings(version := "1.1")
   .settings(commonSettings:_*)
   .settings(
@@ -25,12 +22,9 @@
       "com.typesafe" % "config" % "1.2.1" withSources() withJavadoc()
     )
   )
-  .settings(publishMavenStyle := true)
 
-lazy val buildDetailsGenerator = project.in(file("build-details-generator"))
-  .settings(name := "build-details-generator")
+lazy val buildDetailsGenerator = Project("build-details-generator", file("build-details-generator"))
   .settings(version := "1.1")
   .settings(commonSettings:_*)
-  .settings(publishMavenStyle := true)
 
 publish := {}
Make bintray plugin publish to a ivy repository instead of maven
