You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/02/11 09:53:58 UTC

[incubator-pekko-management] branch main updated: add disclaimer (#11)

This is an automated email from the ASF dual-hosted git repository.

fanningpj 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 39178e1  add disclaimer (#11)
39178e1 is described below

commit 39178e1bafb7b3560ae92426ffbca24e73d10a67
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sat Feb 11 10:53:53 2023 +0100

    add disclaimer (#11)
---
 DISCLAIMER                             | 10 ++++++++++
 build.sbt                              | 23 +++++++++++++++++++++--
 project/MetaInfLicenseNoticeCopy.scala | 31 +++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 2 deletions(-)

diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 0000000..6a31e0f
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,10 @@
+Apache Pekko (incubating) is an effort undergoing incubation at the Apache
+Software Foundation (ASF), sponsored by the Apache Incubator PMC.
+
+Incubation is required of all newly accepted projects until a further review
+indicates that the infrastructure, communications, and decision making process
+have stabilized in a manner consistent with other successful ASF projects.
+
+While incubation status is not necessarily a reflection of the completeness
+or stability of the code, it does indicate that the project has yet to be
+fully endorsed by the ASF.
diff --git a/build.sbt b/build.sbt
index 3113612..f723ea6 100644
--- a/build.sbt
+++ b/build.sbt
@@ -47,6 +47,7 @@ lazy val `akka-discovery-kubernetes-api` = project
     organization := "com.lightbend.akka.discovery",
     libraryDependencies := Dependencies.DiscoveryKubernetesApi,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management-pki`)
 
 lazy val `akka-discovery-marathon-api` = project
@@ -57,6 +58,7 @@ lazy val `akka-discovery-marathon-api` = project
     organization := "com.lightbend.akka.discovery",
     libraryDependencies := Dependencies.DiscoveryMarathonApi,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `akka-discovery-aws-api` = project
   .in(file("discovery-aws-api"))
@@ -66,6 +68,7 @@ lazy val `akka-discovery-aws-api` = project
     organization := "com.lightbend.akka.discovery",
     libraryDependencies := Dependencies.DiscoveryAwsApi,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `akka-discovery-aws-api-async` = project
   .in(file("discovery-aws-api-async"))
@@ -75,6 +78,7 @@ lazy val `akka-discovery-aws-api-async` = project
     organization := "com.lightbend.akka.discovery",
     libraryDependencies := Dependencies.DiscoveryAwsApiAsync,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `akka-discovery-consul` = project
   .in(file("discovery-consul"))
@@ -84,6 +88,7 @@ lazy val `akka-discovery-consul` = project
     organization := "com.lightbend.akka.discovery",
     libraryDependencies := Dependencies.DiscoveryConsul,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 // gathers all enabled routes and serves them (HTTP or otherwise)
 lazy val `akka-management` = project
@@ -93,6 +98,7 @@ lazy val `akka-management` = project
     name := "akka-management",
     libraryDependencies := Dependencies.ManagementHttp,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `akka-management-pki` = project
   .in(file("management-pki"))
@@ -101,6 +107,7 @@ lazy val `akka-management-pki` = project
     name := "akka-management-pki",
     libraryDependencies := Dependencies.ManagementPki,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `loglevels-logback` = project
   .in(file("loglevels-logback"))
@@ -109,6 +116,7 @@ lazy val `loglevels-logback` = project
     name := "akka-management-loglevels-logback",
     libraryDependencies := Dependencies.LoglevelsLogback,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management`)
 
 lazy val `loglevels-log4j2` = project
@@ -118,6 +126,7 @@ lazy val `loglevels-log4j2` = project
   .settings(
     name := "akka-management-loglevels-log4j2",
     libraryDependencies := Dependencies.LoglevelsLog4j2)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management`)
 
 lazy val `cluster-http` = project
@@ -127,6 +136,7 @@ lazy val `cluster-http` = project
     name := "akka-management-cluster-http",
     libraryDependencies := Dependencies.ClusterHttp,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management`)
 
 lazy val `cluster-bootstrap` = project
@@ -136,6 +146,7 @@ lazy val `cluster-bootstrap` = project
     name := "akka-management-cluster-bootstrap",
     libraryDependencies := Dependencies.ClusterBootstrap,
     mimaPreviousArtifactsSet)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management`)
 
 lazy val `lease-kubernetes` = project
@@ -145,8 +156,8 @@ lazy val `lease-kubernetes` = project
     name := "akka-lease-kubernetes",
     libraryDependencies := Dependencies.LeaseKubernetes,
     mimaPreviousArtifactsSet)
-  .settings(
-    Defaults.itSettings)
+  .settings(Defaults.itSettings)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .configs(IntegrationTest)
   .dependsOn(`akka-management-pki`)
 
@@ -172,6 +183,7 @@ lazy val `lease-kubernetes-int-test` = project
       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/akka-lease-kubernetes-int-test")))
+  .settings(MetaInfLicenseNoticeCopy.settings)
 
 lazy val `integration-test-kubernetes-api` = project
   .in(file("integration-test/kubernetes-api"))
@@ -181,6 +193,7 @@ lazy val `integration-test-kubernetes-api` = project
     publish / skip := true,
     doc / sources := Seq.empty,
     libraryDependencies := Dependencies.BootstrapDemos)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(`akka-management`, `cluster-http`, `cluster-bootstrap`, `akka-discovery-kubernetes-api`)
 
 lazy val `integration-test-kubernetes-api-java` = project
@@ -191,6 +204,7 @@ lazy val `integration-test-kubernetes-api-java` = project
     publish / skip := true,
     doc / sources := Seq.empty,
     libraryDependencies := Dependencies.BootstrapDemos)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
@@ -205,6 +219,7 @@ lazy val `integration-test-kubernetes-dns` = project
     publish / skip := true,
     doc / sources := Seq.empty,
     libraryDependencies := Dependencies.BootstrapDemos)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
@@ -219,6 +234,7 @@ lazy val `integration-test-aws-api-ec2-tag-based` = project
     publish / skip := true,
     doc / sources := Seq.empty,
     Defaults.itSettings)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
@@ -233,6 +249,7 @@ lazy val `integration-test-marathon-api-docker` = project
     name := "integration-test-marathon-api-docker",
     publish / skip := true,
     doc / sources := Seq.empty)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
@@ -246,6 +263,7 @@ lazy val `integration-test-aws-api-ecs` = project
   .settings(
     publish / skip := true,
     doc / sources := Seq.empty)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
@@ -266,6 +284,7 @@ lazy val `integration-test-local` = project
     publish / skip := true,
     doc / sources := Seq.empty,
     libraryDependencies := Dependencies.BootstrapDemos)
+  .settings(MetaInfLicenseNoticeCopy.settings)
   .dependsOn(
     `akka-management`,
     `cluster-http`,
diff --git a/project/MetaInfLicenseNoticeCopy.scala b/project/MetaInfLicenseNoticeCopy.scala
new file mode 100644
index 0000000..1f18575
--- /dev/null
+++ b/project/MetaInfLicenseNoticeCopy.scala
@@ -0,0 +1,31 @@
+/*
+ * 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, which was derived from Akka.
+ */
+
+import sbt.Keys._
+import sbt._
+
+/**
+ * Copies LICENSE and NOTICE files into jar META-INF dir
+ */
+object MetaInfLicenseNoticeCopy {
+
+  val settings: Seq[Setting[_]] = inConfig(Compile)(
+    Seq(
+      resourceGenerators += copyFileToMetaInf(resourceManaged, "LICENSE"),
+      resourceGenerators += copyFileToMetaInf(resourceManaged, "NOTICE"),
+      resourceGenerators += copyFileToMetaInf(resourceManaged, "DISCLAIMER")))
+
+  def copyFileToMetaInf(dir: SettingKey[File], fileName: String) = Def.task[Seq[File]] {
+    val fromFile = (LocalRootProject / baseDirectory).value / fileName
+    val toFile = resourceManaged.value / "META-INF" / fileName
+    IO.copyFile(fromFile, toFile)
+    Seq(toFile)
+  }
+
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org