Skip to content
Permalink
Browse files

Use sbt-phoenix to structure the build

  • Loading branch information...
lefou committed Apr 4, 2019
1 parent 38b5688 commit e397c11533931d36078ba48946ef0b1359f136d8
Showing with 1,091 additions and 1,033 deletions.
  1. +2 −2 build.sbt
  2. +18 −17 project/BlendedActivemqBrokerstarter.scala
  3. +23 −21 project/BlendedActivemqClient.scala
  4. +20 −18 project/BlendedAkka.scala
  5. +19 −17 project/BlendedAkkaHttp.scala
  6. +14 −16 project/BlendedAkkaHttpApi.scala
  7. +19 −16 project/BlendedAkkaHttpJmsqueue.scala
  8. +16 −15 project/BlendedAkkaHttpProxy.scala
  9. +15 −14 project/BlendedAkkaHttpRestjms.scala
  10. +16 −14 project/BlendedAkkaHttpSampleHelloworld.scala
  11. +9 −8 project/BlendedCamelUtils.scala
  12. +12 −11 project/BlendedContainerContextApi.scala
  13. +20 −18 project/BlendedContainerContextImpl.scala
  14. +22 −26 project/BlendedDependencies.scala
  15. +13 −11 project/BlendedDocsJs.scala
  16. +10 −10 project/BlendedDomino.scala
  17. +13 −13 project/BlendedFile.scala
  18. +9 −8 project/BlendedHawtioLogin.scala
  19. +11 −12 project/BlendedJettyBoot.scala
  20. +28 −24 project/BlendedJmsBridge.scala
  21. +15 −13 project/BlendedJmsSampler.scala
  22. +16 −15 project/BlendedJmsUtils.scala
  23. +14 −12 project/BlendedJmx.scala
  24. +15 −13 project/BlendedJolokia.scala
  25. +20 −20 project/BlendedLauncher.scala
  26. +16 −14 project/BlendedMgmtAgent.scala
  27. +16 −14 project/BlendedMgmtBase.scala
  28. +13 −11 project/BlendedMgmtMock.scala
  29. +19 −17 project/BlendedMgmtRepo.scala
  30. +20 −18 project/BlendedMgmtRepoRest.scala
  31. +23 −20 project/BlendedMgmtRest.scala
  32. +16 −14 project/BlendedMgmtServiceJmx.scala
  33. +23 −21 project/BlendedMgmtWs.scala
  34. +10 −9 project/BlendedPersistence.scala
  35. +20 −17 project/BlendedPersistenceH2.scala
  36. +10 −12 project/BlendedPrickle.scala
  37. +9 −8 project/BlendedPrickleAkkaHttp.scala
  38. +14 −12 project/BlendedSamplesCamel.scala
  39. +15 −13 project/BlendedSamplesJms.scala
  40. +35 −39 project/BlendedSecurity.scala
  41. +12 −11 project/BlendedSecurityAkkaHttp.scala
  42. +11 −10 project/BlendedSecurityBoot.scala
  43. +16 −12 project/BlendedSecurityCrypto.scala
  44. +16 −14 project/BlendedSecurityLoginApi.scala
  45. +19 −18 project/BlendedSecurityLoginImpl.scala
  46. +19 −17 project/BlendedSecurityLoginRest.scala
  47. +19 −18 project/BlendedSecurityScep.scala
  48. +41 −42 project/BlendedSecurityScepStandalone.scala
  49. +22 −23 project/BlendedSecuritySsl.scala
  50. +11 −10 project/BlendedSecurityTest.scala
  51. +29 −27 project/BlendedStreams.scala
  52. +26 −24 project/BlendedStreamsDispatcher.scala
  53. +12 −11 project/BlendedStreamsTestsupport.scala
  54. +12 −11 project/BlendedTestsupport.scala
  55. +12 −11 project/BlendedTestsupportPojosr.scala
  56. +20 −17 project/BlendedUpdater.scala
  57. +34 −32 project/BlendedUpdaterConfig.scala
  58. +21 −19 project/BlendedUpdaterRemote.scala
  59. +15 −11 project/BlendedUpdaterTools.scala
  60. +18 −14 project/BlendedUtil.scala
  61. +6 −6 project/BlendedUtilLogging.scala
  62. +3 −3 project/CommonSettings.scala
  63. +11 −40 project/ProjectSettings.scala
  64. +36 −29 project/PublishConfig.scala
  65. +2 −0 project/plugins.sbt
@@ -181,8 +181,8 @@ lazy val root = {
unidocProjectFilter.in(ScalaUnidoc, unidoc) := inAnyProject -- inProjects(jsProjects:_*)
)
.settings(global)
.settings(CommonSettings())
.settings(PublishConfig.doPublish)
// .settings(CommonSettings())
// .settings(PublishConfig.doPublish)
.enablePlugins(ScalaUnidocPlugin, JBake)
.settings(RootSettings(BlendedDocsJs.project))
// .settings(ExportDependencies.settings)
@@ -1,31 +1,32 @@
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedActivemqBrokerstarter extends ProjectFactory {
object config extends ProjectSettings {
override val projectName = "blended.activemq.brokerstarter"
override val description = "A simple wrapper around an Active MQ broker that makes sure that the broker is completely started before exposing a connection factory OSGi service"

private[this] val helper = new ProjectSettings(
projectName = "blended.activemq.brokerstarter",
description = "A simple wrapper around an Active MQ broker that makes sure that the broker is completely started before exposing a connection factory OSGi service",
deps = Seq(
override def deps = Seq(
Dependencies.camelJms,
Dependencies.activeMqBroker,
Dependencies.activeMqSpring,

Dependencies.scalatest % "test",
Dependencies.logbackCore % "test",
Dependencies.logbackClassic % "test",
Dependencies.scalatest % Test,
Dependencies.logbackCore % Test,
Dependencies.logbackClassic % Test,
Dependencies.activeMqKahadbStore
),
adaptBundle = b => b.copy(
bundleActivator = s"${b.bundleSymbolicName}.internal.BrokerActivator"
)
)

override val project = helper.baseProject.dependsOn(
BlendedAkka.project,
BlendedJmsUtils.project,
override def bundle: BlendedBundle = super.bundle.copy(
bundleActivator = s"${projectName}.internal.BrokerActivator"
)

BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedAkka.project,
BlendedJmsUtils.project,
BlendedTestsupport.project % Test,
BlendedTestsupportPojosr.project % Test
)
}
}
@@ -1,32 +1,34 @@
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedActivemqClient extends ProjectFactory {

private[this] val helper = new ProjectSettings(
projectName = "blended.activemq.client",
description = "An Active MQ Connection factory as a service",
deps = Seq(
object config extends ProjectSettings {
override val projectName = "blended.activemq.client"
override val description = "An Active MQ Connection factory as a service"

override def deps = Seq(
Dependencies.activeMqClient,
Dependencies.activeMqBroker % "test",
Dependencies.activeMqKahadbStore % "test"
),
adaptBundle = b => b.copy(
bundleActivator = s"${b.bundleSymbolicName}.internal.AmqClientActivator",
exportPackage = Seq(b.bundleSymbolicName)
)
)

override val project = helper.baseProject.dependsOn(

BlendedDomino.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedJmsUtils.project,
BlendedAkka.project,
BlendedStreams.project,

BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
override def bundle: BlendedBundle = super.bundle.copy(
bundleActivator = s"${projectName}.internal.AmqClientActivator",
exportPackage = Seq(projectName)
)

override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedDomino.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedJmsUtils.project,
BlendedAkka.project,
BlendedStreams.project,

BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
}
}
@@ -1,43 +1,45 @@
import sbt._
import de.wayofquality.sbt.testlogconfig.TestLogConfig.autoImport._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedAkka extends ProjectFactory {
object config extends ProjectSettings {
override val projectName = "blended.akka"
override val description = "Provide OSGi services and API to use Actors in OSGi bundles with a shared ActorSystem."

private[this] val helper = new ProjectSettings(
projectName = "blended.akka",
description = "Provide OSGi services and API to use Actors in OSGi bundles with a shared ActorSystem.",
deps = Seq(
override def deps = Seq(
Dependencies.orgOsgi,
Dependencies.akkaActor,
Dependencies.domino,

Dependencies.scalatest % "test",
Dependencies.logbackCore % "test",
Dependencies.logbackClassic % "test"
),
adaptBundle = b => b.copy(
bundleActivator = s"${b.bundleSymbolicName}.internal.BlendedAkkaActivator",
)

override def bundle: BlendedBundle = super.bundle.copy(
bundleActivator = s"${projectName}.internal.BlendedAkkaActivator",
exportPackage = Seq(
b.bundleSymbolicName,
s"${b.bundleSymbolicName}.protocol"
projectName,
s"${projectName}.protocol"
)
)
) {

override def settings: Seq[sbt.Setting[_]] = defaultSettings ++ Seq(
Test / testlogDefaultLevel := "INFO",
Test / testlogLogPackages ++= Map(
"blended" -> "TRACE"
)
)
}

override val project = helper.baseProject.dependsOn(
BlendedUtilLogging.project,
BlendedContainerContextApi.project,
BlendedDomino.project,
override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedUtilLogging.project,
BlendedContainerContextApi.project,
BlendedDomino.project,

BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
}
}
@@ -1,12 +1,13 @@
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedAkkaHttp extends ProjectFactory {
object config extends ProjectSettings {
override val projectName = "blended.akka.http"
override val description = "Provide Akka HTTP support"

private[this] val helper = new ProjectSettings(
projectName = "blended.akka.http",
description = "Provide Akka HTTP support",
deps = Seq(
override def deps = Seq(
Dependencies.domino,
Dependencies.orgOsgi,
Dependencies.akkaStream,
@@ -20,19 +21,20 @@ object BlendedAkkaHttp extends ProjectFactory {
Dependencies.akkaStreamTestkit % "test",
Dependencies.logbackCore % "test",
Dependencies.logbackClassic % "test"
),
adaptBundle = b => b.copy(
bundleActivator = s"${b.bundleSymbolicName}.internal.BlendedAkkaHttpActivator"
)
)

override val project = helper.baseProject.dependsOn(
BlendedContainerContextApi.project,
BlendedDomino.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedAkka.project,
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
override def bundle: BlendedBundle = super.bundle.copy(
bundleActivator = s"${projectName}.internal.BlendedAkkaHttpActivator"
)

override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedContainerContextApi.project,
BlendedDomino.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedAkka.project,
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
}
}
@@ -2,19 +2,22 @@ import com.typesafe.sbt.osgi.OsgiKeys._
import sbt.Keys._
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedAkkaHttpApi extends ProjectFactory {
object config extends ProjectSettings {
override val projectName = "blended.akka.http.api"
override val description = "Package the Akka Http API into a bundle."

private[this] val helper: ProjectSettings = new ProjectSettings(
projectName = "blended.akka.http.api",
description = "Package the Akka Http API into a bundle.",
osgiDefaultImports = false,
deps = Seq(
override val osgiDefaultImports = false

override def deps = Seq(
Dependencies.akkaHttp.intransitive(),
Dependencies.akkaHttpCore.intransitive(),
Dependencies.akkaParsing.intransitive()
),
adaptBundle = b => b.copy(
)

override def bundle: BlendedBundle = super.bundle.copy(
importPackage = Seq(
"com.sun.*;resolution:=optional",
"sun.*;resolution:=optional",
@@ -28,22 +31,17 @@ object BlendedAkkaHttpApi extends ProjectFactory {
s"akka.http.*;version=${Dependencies.akkaHttpVersion};-split-package:=merge-first"
)
)
) {

override def settings: Seq[sbt.Setting[_]] = defaultSettings ++ Seq(

override def settings: Seq[sbt.Setting[_]] = super.settings ++ Seq(
embeddedJars := {
(Compile/externalDependencyClasspath).value
(Compile / externalDependencyClasspath).value
.map(_.data)
.filter(f =>
f.getName().contains("akka-parsing_") ||
f.getName().contains("akka-http-core_") ||
f.getName().contains("akka-http_")
)
f.getName().contains("akka-http-core_") ||
f.getName().contains("akka-http_"))
}
)
}

override val project = helper.baseProject
}

@@ -1,12 +1,14 @@
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedAkkaHttpJmsqueue extends ProjectFactory {
object config extends ProjectSettings {

private[this] val helper = new ProjectSettings(
projectName = "blended.akka.http.jmsqueue",
description = "Provide a simple REST interface to consume messages from JMS Queues",
deps = Seq(
override val projectName = "blended.akka.http.jmsqueue"
override val description = "Provide a simple REST interface to consume messages from JMS Queues"

override def deps = Seq(
Dependencies.domino,
Dependencies.jms11Spec,
Dependencies.sttp % "test",
@@ -21,18 +23,19 @@ object BlendedAkkaHttpJmsqueue extends ProjectFactory {
Dependencies.activeMqBroker % "test",
Dependencies.activeMqKahadbStore % "test"
)
)

override val project = helper.baseProject.dependsOn(
BlendedDomino.project,
BlendedContainerContextApi.project,
BlendedAkka.project,
BlendedAkkaHttp.project,
BlendedUtil.project,
override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedDomino.project,
BlendedContainerContextApi.project,
BlendedAkka.project,
BlendedAkkaHttp.project,
BlendedUtil.project,

BlendedActivemqBrokerstarter.project % "test",
BlendedStreams.project % "test",
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)

BlendedActivemqBrokerstarter.project % "test",
BlendedStreams.project % "test",
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
}
}
@@ -1,12 +1,13 @@
import sbt._
import blended.sbt.Dependencies
import phoenix.ProjectFactory

object BlendedAkkaHttpProxy extends ProjectFactory {
object config extends ProjectSettings {
override val projectName = "blended.akka.http.proxy"
override val description = "Provide Akka HTTP Proxy support"

private[this] val helper = new ProjectSettings(
projectName = "blended.akka.http.proxy",
description = "Provide Akka HTTP Proxy support",
deps = Seq(
override def deps = Seq(
Dependencies.domino,
Dependencies.akkaStream,
Dependencies.akkaHttp,
@@ -20,16 +21,16 @@ object BlendedAkkaHttpProxy extends ProjectFactory {
Dependencies.logbackCore % "test",
Dependencies.logbackClassic % "test"
)
)

override val project = helper.baseProject.dependsOn(
BlendedDomino.project,
BlendedContainerContextApi.project,
BlendedAkka.project,
BlendedAkkaHttp.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
override def dependsOn: Seq[ClasspathDep[ProjectReference]] = Seq(
BlendedDomino.project,
BlendedContainerContextApi.project,
BlendedAkka.project,
BlendedAkkaHttp.project,
BlendedUtil.project,
BlendedUtilLogging.project,
BlendedTestsupport.project % "test",
BlendedTestsupportPojosr.project % "test"
)
}
}
Oops, something went wrong.

0 comments on commit e397c11

Please sign in to comment.
You can’t perform that action at this time.