This is an automated email from the ASF dual-hosted git repository.
mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-management.git
The following commit(s) were added to refs/heads/main by this push:
new ccc90a7 Refactor publish skip settings into NoPlugin
ccc90a7 is described below
commit ccc90a760ad6b02afd93dbe26f9f107a17594f42
Author: Matthew de Detrich <[email protected]>
AuthorDate: Wed May 31 10:14:46 2023 +0200
Refactor publish skip settings into NoPlugin
---
build.sbt | 36 +++++++++++-------------------------
project/NoPublish.scala | 21 +++++++++++++++++++++
2 files changed, 32 insertions(+), 25 deletions(-)
diff --git a/build.sbt b/build.sbt
index 439ce0d..e50fd15 100644
--- a/build.sbt
+++ b/build.sbt
@@ -39,8 +39,8 @@ lazy val root = project
docs)
.settings(
name := "pekko-management-root",
- GlobalScope / parallelExecution := false,
- publish / skip := true)
+ GlobalScope / parallelExecution := false)
+ .enablePlugins(NoPublish)
lazy val mimaPreviousArtifactsSet = mimaPreviousArtifacts := Set.empty //
temporarily disable mima checks
@@ -144,7 +144,6 @@ lazy val leaseKubernetesIntTest =
pekkoModule("lease-kubernetes-int-test")
.disablePlugins(MimaPlugin)
.settings(
name := "pekko-lease-kubernetes-int-test",
- publish / skip := true,
libraryDependencies := Dependencies.leaseKubernetesTest,
version ~= (_.replace('+', '-')),
dockerBaseImage := "openjdk:8-jre-alpine",
@@ -158,22 +157,20 @@ lazy val leaseKubernetesIntTest =
pekkoModule("lease-kubernetes-int-test")
Cmd("RUN", "chgrp -R 0 . && chmod -R g=u ."),
Cmd("RUN", "/sbin/apk", "add", "--no-cache", "bash", "bind-tools",
"busybox-extras", "curl", "strace"),
Cmd("RUN", "chmod +x /opt/docker/bin/pekko-lease-kubernetes-int-test")))
+ .enablePlugins(NoPublish)
lazy val integrationTestKubernetesApi = pekkoIntTestModule("kubernetes-api")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin)
.settings(
- publish / skip := true,
- doc / sources := Seq.empty,
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(management, managementClusterHttp, managementClusterBootstrap,
discoveryKubernetesApi)
+ .enablePlugins(NoPublish)
lazy val integrationTestKubernetesApiJava =
pekkoIntTestModule("kubernetes-api-java")
.disablePlugins(MimaPlugin)
- .enablePlugins(AutomateHeaderPlugin)
+ .enablePlugins(AutomateHeaderPlugin, NoPublish)
.settings(
- publish / skip := true,
- doc / sources := Seq.empty,
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(
management,
@@ -183,10 +180,8 @@ lazy val integrationTestKubernetesApiJava =
pekkoIntTestModule("kubernetes-api-j
lazy val integrationTestKubernetesDns = pekkoIntTestModule("kubernetes-dns")
.disablePlugins(MimaPlugin)
- .enablePlugins(AutomateHeaderPlugin)
+ .enablePlugins(AutomateHeaderPlugin, NoPublish)
.settings(
- publish / skip := true,
- doc / sources := Seq.empty,
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(
management,
@@ -196,10 +191,8 @@ lazy val integrationTestKubernetesDns =
pekkoIntTestModule("kubernetes-dns")
lazy val integrationTestAwsApiEc2TagBased = pekkoIntTestModule("aws-api-ec2")
.configs(IntegrationTest)
.disablePlugins(MimaPlugin)
- .enablePlugins(AutomateHeaderPlugin)
+ .enablePlugins(AutomateHeaderPlugin, NoPublish)
.settings(
- publish / skip := true,
- doc / sources := Seq.empty,
Defaults.itSettings)
.dependsOn(
management,
@@ -209,11 +202,9 @@ lazy val integrationTestAwsApiEc2TagBased =
pekkoIntTestModule("aws-api-ec2")
lazy val integrationTestMarathonApiDocker =
pekkoIntTestModule("marathon-api-docker")
.disablePlugins(MimaPlugin)
- .enablePlugins(AutomateHeaderPlugin)
+ .enablePlugins(AutomateHeaderPlugin, NoPublish)
.settings(
- name := "integration-test-marathon-api-docker",
- publish / skip := true,
- doc / sources := Seq.empty)
+ name := "integration-test-marathon-api-docker")
.dependsOn(
management,
managementClusterHttp,
@@ -223,15 +214,12 @@ lazy val integrationTestMarathonApiDocker =
pekkoIntTestModule("marathon-api-doc
lazy val integrationTestAwsApiEcs = pekkoIntTestModule("aws-api-ecs")
.disablePlugins(MimaPlugin)
.enablePlugins(AutomateHeaderPlugin)
- .settings(
- publish / skip := true,
- doc / sources := Seq.empty)
.dependsOn(
management,
managementClusterHttp,
managementClusterBootstrap,
discoveryAwsApiAsync)
- .enablePlugins(JavaAppPackaging, AshScriptPlugin, DockerPlugin)
+ .enablePlugins(JavaAppPackaging, AshScriptPlugin, DockerPlugin, NoPublish)
.settings(
dockerBaseImage := "openjdk:10-jre-slim",
Docker / com.typesafe.sbt.SbtNativePackager.autoImport.packageName :=
"ecs-integration-test-app",
@@ -242,14 +230,12 @@ lazy val integrationTestLocal =
pekkoIntTestModule("local")
.enablePlugins(AutomateHeaderPlugin)
.settings(
name := "integration-test-local",
- publish / skip := true,
- doc / sources := Seq.empty,
libraryDependencies := Dependencies.bootstrapDemos)
.dependsOn(
management,
managementClusterHttp,
managementClusterBootstrap)
- .enablePlugins(JavaAppPackaging, AshScriptPlugin)
+ .enablePlugins(JavaAppPackaging, AshScriptPlugin, NoPublish)
lazy val themeSettings = Seq(
// allow access to snapshots for pekko-sbt-paradox
diff --git a/project/NoPublish.scala b/project/NoPublish.scala
new file mode 100644
index 0000000..1fb9257
--- /dev/null
+++ b/project/NoPublish.scala
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * license agreements; and to You under the Apache License, version 2.0:
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * This file is part of the Apache Pekko project, derived from Akka.
+ */
+
+import sbt._
+import sbt.Keys._
+
+/**
+ * For projects that are not to be published.
+ */
+object NoPublish extends AutoPlugin {
+ override def requires = plugins.JvmPlugin
+
+ override def projectSettings =
+ Seq(publish / skip := true, Compile / doc / sources := Seq.empty)
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]