Skip to content

Commit

Permalink
Provide dependencies
Browse files Browse the repository at this point in the history
Does not publish the following dependent dependencies anymore (all supported versions):
- akka-cluster
- akka-http-experimental
- akka-http
- play-ws
- lagom-javadsl-client
- lagom-scaladsl-client

This is achieved by using the `provided` scope when adding the dependencies.

Addresses typesafehub#127
  • Loading branch information
markusjura committed Feb 21, 2017
1 parent aba9c78 commit bd81758
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion akka23-common/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := "akka23-conductr-lib-common"

libraryDependencies ++= List(
Library.akka23Http
Library.akka23Http % "provided"
)

crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12"))
6 changes: 4 additions & 2 deletions akka23-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import Tests._
name := "akka23-conductr-bundle-lib"

libraryDependencies ++= List(
Library.akka23Cluster,
// Adding akka23Http here is necessary because akka23-common is adding the library as 'provided'
Library.akka23Http % "provided",
Library.akka23Cluster % "provided",
Library.akka23Testkit % "test",
Library.scalaTest % "test"
)
Expand All @@ -12,7 +14,7 @@ crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12"))

fork in Test := true

def groupByFirst(tests: Seq[TestDefinition]) =
def groupByFirst(tests: Seq[TestDefinition]): Seq[Group] =
tests
.groupBy(t => t.name.drop(t.name.indexOf("WithEnv")))
.map {
Expand Down
2 changes: 1 addition & 1 deletion akka24-common/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := "akka24-conductr-lib-common"

libraryDependencies ++= List(
Library.akka24Http
Library.akka24Http % "provided"
)
4 changes: 3 additions & 1 deletion akka24-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import Tests._
name := "akka24-conductr-bundle-lib"

libraryDependencies ++= List(
Library.akka24Cluster,
// Adding akka24Http here is necessary because akka24-common is adding the library as 'provided'
Library.akka24Http % "provided",
Library.akka24Cluster % "provided",
Library.akka24Testkit % "test",
Library.scalaTest % "test"
)
Expand Down
2 changes: 2 additions & 0 deletions akka24-conductr-client-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Tests._
name := "akka24-conductr-client-lib"

libraryDependencies ++= List(
// Adding akka24Http here is necessary because akka24-common is adding the library as 'provided'
Library.akka24Http % "provided",
Library.akka24Sse,
Library.play25Json,
Library.akka24HttpTestkit % "test",
Expand Down
2 changes: 1 addition & 1 deletion lagom1-java-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Tests._
name := "lagom1-java-conductr-bundle-lib"

libraryDependencies ++= List(
Library.lagom1ClientJavadsl,
Library.lagom1ClientJavadsl % "provided",
Library.akka24Testkit % "test",
Library.play25Test % "test",
Library.scalaTest % "test"
Expand Down
2 changes: 1 addition & 1 deletion lagom1-scala-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Tests._
name := "lagom1-scala-conductr-bundle-lib"

libraryDependencies ++= List(
Library.lagom1ClientScaladsl,
Library.lagom1ClientScaladsl % "provided",
Library.lagom1ServerScaladsl % "test",
Library.akka24Testkit % "test",
Library.play25Test % "test",
Expand Down
2 changes: 1 addition & 1 deletion play23-common/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := "play23-conductr-lib-common"

libraryDependencies ++= List(
Library.play23Ws
Library.play23Ws % "provided"
)

resolvers += Resolvers.typesafeReleases // For netty-http-pipeline
Expand Down
2 changes: 2 additions & 0 deletions play23-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Tests._
name := "play23-conductr-bundle-lib"

libraryDependencies ++= List(
// Adding play23Ws here is necessary because play23-common is adding the library as 'provided'
Library.play23Ws % "provided",
Library.akka23Testkit % "test",
Library.play23Test % "test",
Library.scalaTest % "test"
Expand Down
2 changes: 1 addition & 1 deletion play24-common/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := "play24-conductr-lib-common"

libraryDependencies ++= List(
Library.play24Ws
Library.play24Ws % "provided"
)

crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12"))
2 changes: 2 additions & 0 deletions play24-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Tests._
name := "play24-conductr-bundle-lib"

libraryDependencies ++= List(
// Adding play24Ws here is necessary because play24-common is adding the library as 'provided'
Library.play24Ws % "provided",
Library.akka23Testkit % "test",
Library.play24Test % "test",
Library.scalaTest % "test"
Expand Down
2 changes: 1 addition & 1 deletion play25-common/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name := "play25-conductr-lib-common"

libraryDependencies ++= List(
Library.play25Ws
Library.play25Ws % "provided"
)

crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12"))
2 changes: 2 additions & 0 deletions play25-conductr-bundle-lib/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Tests._
name := "play25-conductr-bundle-lib"

libraryDependencies ++= List(
// Adding play25Ws here is necessary because play25-common is adding the library as 'provided'
Library.play25Ws % "provided",
Library.java8Compat,
Library.akka24Testkit % "test",
Library.play25Test % "test",
Expand Down

0 comments on commit bd81758

Please sign in to comment.