=pro #20287 sync dontPublish with Dist
This commit is contained in:
parent
45df6784aa
commit
10a252d9ed
2 changed files with 65 additions and 65 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import akka.{ AkkaBuild, Dependencies, Formatting, OSGi }
|
import akka.{ AkkaBuild, Dependencies, Formatting, OSGi }
|
||||||
|
|
||||||
AkkaBuild.defaultSettings
|
AkkaBuild.defaultSettings
|
||||||
|
AkkaBuild.dontPublishSettings
|
||||||
Formatting.formatSettings
|
Formatting.formatSettings
|
||||||
OSGi.osgi
|
OSGi.osgi
|
||||||
Dependencies.osgi
|
Dependencies.osgi
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ object AkkaBuild extends Build {
|
||||||
|
|
||||||
val enableMiMa = true
|
val enableMiMa = true
|
||||||
|
|
||||||
val parallelExecutionByDefault = false // TODO: enable this once we're sure it doesn not break things
|
val parallelExecutionByDefault = false // TODO: enable this once we're sure it does not break things
|
||||||
|
|
||||||
lazy val buildSettings = Dependencies.Versions ++ Seq(
|
lazy val buildSettings = Dependencies.Versions ++ Seq(
|
||||||
organization := "com.typesafe.akka",
|
organization := "com.typesafe.akka",
|
||||||
|
|
@ -42,26 +42,72 @@ object AkkaBuild extends Build {
|
||||||
UnidocRoot.akkaSettings ++
|
UnidocRoot.akkaSettings ++
|
||||||
Protobuf.settings ++ Seq(
|
Protobuf.settings ++ Seq(
|
||||||
parallelExecution in GlobalScope := System.getProperty("akka.parallelExecution", parallelExecutionByDefault.toString).toBoolean,
|
parallelExecution in GlobalScope := System.getProperty("akka.parallelExecution", parallelExecutionByDefault.toString).toBoolean,
|
||||||
Dist.distExclude := Seq(actorTests.id, docs.id, samples.id, osgi.id),
|
Dist.distExclude := Seq(
|
||||||
|
actorTests.id,
|
||||||
|
benchJmh.id,
|
||||||
|
docs.id,
|
||||||
|
httpTests.id,
|
||||||
|
persistenceShared.id,
|
||||||
|
remoteTests.id,
|
||||||
|
samples.id,
|
||||||
|
streamTests.id,
|
||||||
|
streamTestsTck.id,
|
||||||
|
osgi.id
|
||||||
|
),
|
||||||
S3.host in S3.upload := "downloads.typesafe.com.s3.amazonaws.com",
|
S3.host in S3.upload := "downloads.typesafe.com.s3.amazonaws.com",
|
||||||
S3.progress in S3.upload := true,
|
S3.progress in S3.upload := true,
|
||||||
mappings in S3.upload <<= (Release.releaseDirectory, version) map { (d, v) =>
|
mappings in S3.upload <<= (Release.releaseDirectory, version) map { (d, v) =>
|
||||||
val downloads = d / "downloads"
|
val downloads = d / "downloads"
|
||||||
val archivesPathFinder = downloads * s"*$v.zip"
|
val archivesPathFinder = downloads * s"*$v.zip"
|
||||||
archivesPathFinder.get.map(file => (file -> ("akka/" + file.getName)))
|
archivesPathFinder.get.map(file => file -> ("akka/" + file.getName))
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
lazy val aggregatedProjects: Seq[ProjectReference] = Seq(
|
||||||
|
actor,
|
||||||
|
actorTests,
|
||||||
|
agent,
|
||||||
|
benchJmh,
|
||||||
|
camel,
|
||||||
|
cluster,
|
||||||
|
clusterMetrics,
|
||||||
|
clusterSharding,
|
||||||
|
clusterTools,
|
||||||
|
contrib,
|
||||||
|
distributedData,
|
||||||
|
docs,
|
||||||
|
http,
|
||||||
|
httpCore,
|
||||||
|
httpJackson,
|
||||||
|
httpSprayJson,
|
||||||
|
httpTestkit,
|
||||||
|
httpTests,
|
||||||
|
httpXml,
|
||||||
|
kernel,
|
||||||
|
multiNodeTestkit,
|
||||||
|
osgi,
|
||||||
|
parsing,
|
||||||
|
persistence,
|
||||||
|
persistenceQuery,
|
||||||
|
persistenceShared,
|
||||||
|
persistenceTck,
|
||||||
|
protobuf,
|
||||||
|
remote,
|
||||||
|
remoteTests,
|
||||||
|
samples,
|
||||||
|
slf4j,
|
||||||
|
stream,
|
||||||
|
streamTestkit,
|
||||||
|
streamTests,
|
||||||
|
streamTestsTck,
|
||||||
|
testkit,
|
||||||
|
typed
|
||||||
|
)
|
||||||
|
|
||||||
lazy val root = Project(
|
lazy val root = Project(
|
||||||
id = "akka",
|
id = "akka",
|
||||||
base = file("."),
|
base = file("."),
|
||||||
aggregate = Seq(actor, testkit, actorTests, remote, remoteTests, camel,
|
aggregate = aggregatedProjects
|
||||||
cluster, clusterMetrics, clusterTools, clusterSharding, distributedData,
|
|
||||||
slf4j, agent, persistence, persistenceQuery, persistenceTck, persistenceShared,
|
|
||||||
kernel, osgi, docs, contrib, samples, multiNodeTestkit, benchJmh, typed, protobuf,
|
|
||||||
stream, streamTestkit, streamTests, streamTestsTck, parsing,
|
|
||||||
httpCore, http, httpSprayJson, httpXml, httpJackson, httpTests, httpTestkit
|
|
||||||
)
|
|
||||||
).settings(rootSettings: _*)
|
).settings(rootSettings: _*)
|
||||||
|
|
||||||
lazy val akkaScalaNightly = Project(
|
lazy val akkaScalaNightly = Project(
|
||||||
|
|
@ -69,13 +115,7 @@ object AkkaBuild extends Build {
|
||||||
base = file("akka-scala-nightly"),
|
base = file("akka-scala-nightly"),
|
||||||
// remove dependencies that we have to build ourselves (Scala STM)
|
// remove dependencies that we have to build ourselves (Scala STM)
|
||||||
// samples don't work with dbuild right now
|
// samples don't work with dbuild right now
|
||||||
aggregate = Seq(actor, testkit, actorTests, remote, remoteTests, camel,
|
aggregate = aggregatedProjects diff List(agent, docs, samples)
|
||||||
cluster, clusterMetrics, clusterTools, clusterSharding, distributedData,
|
|
||||||
slf4j, persistence, persistenceQuery, persistenceTck, persistenceShared,
|
|
||||||
kernel, osgi, contrib, multiNodeTestkit, benchJmh, typed, protobuf,
|
|
||||||
stream, streamTestkit, streamTests, streamTestsTck, parsing,
|
|
||||||
httpCore, http, httpSprayJson, httpXml, httpJackson, httpTests, httpTestkit
|
|
||||||
)
|
|
||||||
).disablePlugins(ValidatePullRequest, MimaPlugin)
|
).disablePlugins(ValidatePullRequest, MimaPlugin)
|
||||||
|
|
||||||
lazy val actor = Project(
|
lazy val actor = Project(
|
||||||
|
|
@ -133,25 +173,25 @@ object AkkaBuild extends Build {
|
||||||
id = "akka-remote-tests",
|
id = "akka-remote-tests",
|
||||||
base = file("akka-remote-tests"),
|
base = file("akka-remote-tests"),
|
||||||
dependencies = Seq(actorTests % "test->test", multiNodeTestkit)
|
dependencies = Seq(actorTests % "test->test", multiNodeTestkit)
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val cluster = Project(
|
lazy val cluster = Project(
|
||||||
id = "akka-cluster",
|
id = "akka-cluster",
|
||||||
base = file("akka-cluster"),
|
base = file("akka-cluster"),
|
||||||
dependencies = Seq(remote, remoteTests % "test->test" , testkit % "test->test")
|
dependencies = Seq(remote, remoteTests % "test->test" , testkit % "test->test")
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val clusterMetrics = Project(
|
lazy val clusterMetrics = Project(
|
||||||
id = "akka-cluster-metrics",
|
id = "akka-cluster-metrics",
|
||||||
base = file("akka-cluster-metrics"),
|
base = file("akka-cluster-metrics"),
|
||||||
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm", slf4j % "test->compile")
|
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm", slf4j % "test->compile")
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val clusterTools = Project(
|
lazy val clusterTools = Project(
|
||||||
id = "akka-cluster-tools",
|
id = "akka-cluster-tools",
|
||||||
base = file("akka-cluster-tools"),
|
base = file("akka-cluster-tools"),
|
||||||
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm")
|
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm")
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val clusterSharding = Project(
|
lazy val clusterSharding = Project(
|
||||||
id = "akka-cluster-sharding",
|
id = "akka-cluster-sharding",
|
||||||
|
|
@ -162,13 +202,13 @@ object AkkaBuild extends Build {
|
||||||
// provided.
|
// provided.
|
||||||
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm",
|
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm",
|
||||||
persistence % "compile;test->provided", distributedData % "provided;test", clusterTools)
|
persistence % "compile;test->provided", distributedData % "provided;test", clusterTools)
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val distributedData = Project(
|
lazy val distributedData = Project(
|
||||||
id = "akka-distributed-data-experimental",
|
id = "akka-distributed-data-experimental",
|
||||||
base = file("akka-distributed-data"),
|
base = file("akka-distributed-data"),
|
||||||
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm")
|
dependencies = Seq(cluster % "compile->compile;test->test;multi-jvm->multi-jvm")
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val slf4j = Project(
|
lazy val slf4j = Project(
|
||||||
id = "akka-slf4j",
|
id = "akka-slf4j",
|
||||||
|
|
@ -337,7 +377,7 @@ object AkkaBuild extends Build {
|
||||||
id = "akka-contrib",
|
id = "akka-contrib",
|
||||||
base = file("akka-contrib"),
|
base = file("akka-contrib"),
|
||||||
dependencies = Seq(remote, remoteTests % "test->test", cluster, clusterTools, persistence % "compile;test->provided")
|
dependencies = Seq(remote, remoteTests % "test->test", cluster, clusterTools, persistence % "compile;test->provided")
|
||||||
) configs (MultiJvm)
|
).configs(MultiJvm)
|
||||||
|
|
||||||
lazy val samplesSettings = parentSettings ++ ActivatorDist.settings
|
lazy val samplesSettings = parentSettings ++ ActivatorDist.settings
|
||||||
|
|
||||||
|
|
@ -532,47 +572,6 @@ object AkkaBuild extends Build {
|
||||||
javacOptions in doc ++= Seq("-Xdoclint:none")
|
javacOptions in doc ++= Seq("-Xdoclint:none")
|
||||||
)
|
)
|
||||||
|
|
||||||
def akkaPreviousArtifacts(id: String): Def.Initialize[Set[sbt.ModuleID]] = Def.setting {
|
|
||||||
if (enableMiMa) {
|
|
||||||
val versions = {
|
|
||||||
val akka23Versions = Seq("2.3.11", "2.3.12", "2.3.13", "2.3.14")
|
|
||||||
val akka24Versions = Seq("2.4.0", "2.4.1", "2.4.2")
|
|
||||||
val akka24NewArtifacts = Seq(
|
|
||||||
"akka-cluster-sharding",
|
|
||||||
"akka-cluster-tools",
|
|
||||||
"akka-cluster-metrics",
|
|
||||||
"akka-persistence",
|
|
||||||
"akka-distributed-data-experimental",
|
|
||||||
"akka-persistence-query-experimental"
|
|
||||||
)
|
|
||||||
scalaBinaryVersion.value match {
|
|
||||||
case "2.11" if !akka24NewArtifacts.contains(id) => akka23Versions ++ akka24Versions
|
|
||||||
case _ => akka24Versions // Only Akka 2.4.x for scala > than 2.11
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// check against all binary compatible artifacts
|
|
||||||
versions.map(organization.value %% id % _).toSet
|
|
||||||
}
|
|
||||||
else Set.empty
|
|
||||||
}
|
|
||||||
|
|
||||||
def akkaStreamAndHttpPreviousArtifacts(id: String): Def.Initialize[Set[sbt.ModuleID]] = Def.setting {
|
|
||||||
if (enableMiMa) {
|
|
||||||
val versions = {
|
|
||||||
val akka24Versions = Seq("2.4.2")
|
|
||||||
val akka24NewArtifacts = Seq(
|
|
||||||
"akka-http-core"
|
|
||||||
)
|
|
||||||
|
|
||||||
akka24Versions
|
|
||||||
}
|
|
||||||
|
|
||||||
// check against all binary compatible artifacts
|
|
||||||
versions.map(organization.value %% id % _).toSet
|
|
||||||
} else Set.empty
|
|
||||||
}
|
|
||||||
|
|
||||||
def loadSystemProperties(fileName: String): Unit = {
|
def loadSystemProperties(fileName: String): Unit = {
|
||||||
import scala.collection.JavaConverters._
|
import scala.collection.JavaConverters._
|
||||||
val file = new File(fileName)
|
val file = new File(fileName)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue