add DISCLAIMER (#160)

This commit is contained in:
PJ Fanning 2023-02-10 10:52:20 +01:00 committed by GitHub
parent 9c6a0d8288
commit 6091fa713d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

10
DISCLAIMER Normal file
View file

@ -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.

View file

@ -20,17 +20,20 @@ object MetaInfLicenseNoticeCopy {
private val protobufApacheLicenseFile = Def.task[File](baseDir.value / "LICENSE")
private val protobufGoogleLicenseFile = Def.task[File](baseDir.value / "COPYING.protobuf")
private val noticeFile = Def.task[File](baseDir.value / "NOTICE")
private val disclaimerFile = Def.task[File](baseDir.value / "DISCLAIMER")
val settings: Seq[Setting[_]] = inConfig(Compile)(
Seq(
resourceGenerators += copyFileToMetaInf(resourceManaged, standardLicenseFile, "LICENSE"),
resourceGenerators += copyFileToMetaInf(resourceManaged, noticeFile, "NOTICE")))
resourceGenerators += copyFileToMetaInf(resourceManaged, noticeFile, "NOTICE"),
resourceGenerators += copyFileToMetaInf(resourceManaged, disclaimerFile, "DISCLAIMER")))
val protobufSettings: Seq[Setting[_]] = inConfig(Compile)(
Seq(
resourceGenerators += copyFileToMetaInf(resourceManaged, protobufApacheLicenseFile, "LICENSE"),
resourceGenerators += copyFileToMetaInf(resourceManaged, protobufGoogleLicenseFile, "COPYING.protobuf"),
resourceGenerators += copyFileToMetaInf(resourceManaged, noticeFile, "NOTICE")))
resourceGenerators += copyFileToMetaInf(resourceManaged, noticeFile, "NOTICE"),
resourceGenerators += copyFileToMetaInf(resourceManaged, disclaimerFile, "DISCLAIMER")))
private def copyFileToMetaInf(dir: SettingKey[File], fromFile: Def.Initialize[Task[File]],
fileName: String) = Def.task[Seq[File]] {