Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use addPekkoModuleDependency #338

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 79 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* This file is part of the Apache Pekko project, which was derived from Akka.
*/

import com.github.pjfanning.pekkobuild._
import com.typesafe.sbt.packager.docker.{ Cmd, ExecCmd }
import net.bzzt.reproduciblebuilds.ReproducibleBuildsPlugin.reproducibleBuildsCheckResolver
import sbt.Keys.parallelExecution

ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
sourceDistName := "apache-pekko-management"
sourceDistIncubating := false
Expand All @@ -27,8 +27,7 @@ ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
inThisBuild(Def.settings(
Global / onLoad := {
sLog.value.info(
s"Building Pekko Management ${version.value} against Pekko ${Dependencies
.pekkoVersion} and Pekko HTTP ${Dependencies.pekkoHttpVersion} on Scala ${(root / scalaVersion).value}")
s"Building Pekko Management ${version.value} against Pekko ${PekkoCoreDependency.version} and Pekko HTTP ${PekkoHttpDependency.version} on Scala ${(root / scalaVersion).value}")
(Global / onLoad).value
}))

Expand Down Expand Up @@ -71,6 +70,11 @@ lazy val mimaPreviousArtifactsSet = mimaPreviousArtifacts := Set(

lazy val discoveryKubernetesApi = pekkoModule("discovery-kubernetes-api")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.settings(
name := "pekko-discovery-kubernetes-api",
libraryDependencies := Dependencies.discoveryKubernetesApi,
Expand All @@ -79,27 +83,43 @@ lazy val discoveryKubernetesApi = pekkoModule("discovery-kubernetes-api")

lazy val discoveryMarathonApi = pekkoModule("discovery-marathon-api")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.settings(
name := "pekko-discovery-marathon-api",
libraryDependencies := Dependencies.discoveryMarathonApi,
mimaPreviousArtifactsSet)

lazy val discoveryAwsApi = pekkoModule("discovery-aws-api")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.settings(
name := "pekko-discovery-aws-api",
libraryDependencies := Dependencies.discoveryAwsApi,
mimaPreviousArtifactsSet)

lazy val discoveryAwsApiAsync = pekkoModule("discovery-aws-api-async")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.settings(
name := "pekko-discovery-aws-api-async",
libraryDependencies := Dependencies.discoveryAwsApiAsync,
mimaPreviousArtifactsSet)

lazy val discoveryConsul = pekkoModule("discovery-consul")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "test", PekkoCoreDependency.default)
.settings(
name := "pekko-discovery-consul",
libraryDependencies := Dependencies.discoveryConsul,
Expand All @@ -108,20 +128,35 @@ lazy val discoveryConsul = pekkoModule("discovery-consul")
// gathers all enabled routes and serves them (HTTP or otherwise)
lazy val management = pekkoModule("management")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-cluster", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-testkit", "test", PekkoHttpDependency.default)
.settings(
name := "pekko-management",
libraryDependencies := Dependencies.managementHttp,
mimaPreviousArtifactsSet)

lazy val managementPki = pekkoModule("management-pki")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-pki", "", PekkoCoreDependency.default)
.settings(
name := "pekko-management-pki",
libraryDependencies := Dependencies.managementPki,
mimaPreviousArtifactsSet)

lazy val managementLoglevelsLogback = pekkoModule("management-loglevels-logback")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-testkit", "test", PekkoHttpDependency.default)
.settings(
name := "pekko-management-loglevels-logback",
libraryDependencies := Dependencies.managementLoglevelsLogback,
Expand All @@ -130,6 +165,13 @@ lazy val managementLoglevelsLogback = pekkoModule("management-loglevels-logback"

lazy val managementLoglevelsLog4j2 = pekkoModule("management-loglevels-log4j2")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-testkit", "test", PekkoHttpDependency.default)
.settings(
name := "pekko-management-loglevels-log4j2",
libraryDependencies := Dependencies.managementLoglevelsLog4j2,
Expand All @@ -138,6 +180,13 @@ lazy val managementLoglevelsLog4j2 = pekkoModule("management-loglevels-log4j2")

lazy val managementClusterHttp = pekkoModule("management-cluster-http")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-cluster", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-cluster-sharding", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-core", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-testkit", "test", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-distributed-data", "test", PekkoCoreDependency.default)
.settings(
name := "pekko-management-cluster-http",
libraryDependencies := Dependencies.managementClusterHttp,
Expand All @@ -146,6 +195,13 @@ lazy val managementClusterHttp = pekkoModule("management-cluster-http")

lazy val managementClusterBootstrap = pekkoModule("management-cluster-bootstrap")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-cluster", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-core", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-testkit", "test", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-distributed-data", "test", PekkoCoreDependency.default)
.settings(
name := "pekko-management-cluster-bootstrap",
libraryDependencies := Dependencies.managementClusterBootstrap,
Expand All @@ -154,6 +210,13 @@ lazy val managementClusterBootstrap = pekkoModule("management-cluster-bootstrap"

lazy val leaseKubernetes = pekkoModule("lease-kubernetes")
.enablePlugins(AutomateHeaderPlugin, ReproducibleBuildsPlugin)
.addPekkoModuleDependency("pekko-actor", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-coordination", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-stream", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-http-spray-json", "", PekkoHttpDependency.default)
.addPekkoModuleDependency("pekko-testkit", "it,test", PekkoCoreDependency.default)
.settings(
name := "pekko-lease-kubernetes",
libraryDependencies := Dependencies.leaseKubernetes,
Expand Down Expand Up @@ -197,6 +260,9 @@ lazy val leaseKubernetesIntTest = pekkoModule("lease-kubernetes-int-test")
lazy val integrationTestKubernetesApi = pekkoIntTestModule("kubernetes-api")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.settings(
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(management, managementClusterHttp, managementClusterBootstrap, discoveryKubernetesApi)
Expand All @@ -205,6 +271,9 @@ lazy val integrationTestKubernetesApi = pekkoIntTestModule("kubernetes-api")
lazy val integrationTestKubernetesApiJava = pekkoIntTestModule("kubernetes-api-java")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin, NoPublish)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.settings(
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(
Expand All @@ -216,6 +285,9 @@ lazy val integrationTestKubernetesApiJava = pekkoIntTestModule("kubernetes-api-j
lazy val integrationTestKubernetesDns = pekkoIntTestModule("kubernetes-dns")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin, NoPublish)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.settings(
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(
Expand Down Expand Up @@ -264,6 +336,9 @@ lazy val integrationTestAwsApiEcs = pekkoIntTestModule("aws-api-ecs")
lazy val integrationTestLocal = pekkoIntTestModule("local")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin)
.addPekkoModuleDependency("pekko-discovery", "", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-testkit", "test", PekkoCoreDependency.default)
.addPekkoModuleDependency("pekko-slf4j", "", PekkoCoreDependency.default)
.settings(
name := "integration-test-local",
libraryDependencies := Dependencies.bootstrapDemos)
Expand Down Expand Up @@ -298,7 +373,7 @@ lazy val docs = project
"canonical.base_url" -> "https://pekko.apache.org/docs/pekko-management/1.0",
"scaladoc.base_url" -> s"https://pekko.apache.org/api/pekko-management/1.0/",
"scala.binary.version" -> scalaBinaryVersion.value,
"pekko.version" -> Dependencies.pekkoVersion,
"pekko.version" -> PekkoCoreDependency.version,
"extref.pekko.base_url" -> s"https://pekko.apache.org/docs/pekko/${Dependencies.pekkoBinaryVersion}/%s",
"scaladoc.pekko.base_url" -> s"https://pekko.apache.org/api/pekko/${Dependencies.pekkoBinaryVersion}/",
"extref.pekko-http.base_url" -> s"https://pekko.apache.org/docs/pekko-http/${Dependencies.pekkoHttpBinaryVersion}/%s",
Expand Down
Loading
Loading