diff --git a/project/Paradox.scala b/project/Paradox.scala index 7c1f3d604b..055599802c 100644 --- a/project/Paradox.scala +++ b/project/Paradox.scala @@ -95,9 +95,10 @@ object Paradox { val licenseReportGeneratorSettings = Seq( Compile / paradoxMarkdownToHtml / sourceGenerators += Def.taskDyn { val targetFile = (Compile / paradox / sourceManaged).value / "project" / "license-report.md" - ProjectIndexGenerator.CliOptions.generateLicenseReportEnabled.ifTrue((LocalRootProject / dumpLicenseReportAggregate).map{ dir=> - IO.copy(List(dir / "pekko-root-licenses.md" -> targetFile)).toList - }).orElse(Some(Def.task(List.empty[File]))).get + ProjectIndexGenerator.CliOptions.generateLicenseReportEnabled.ifTrue( + (LocalRootProject / dumpLicenseReportAggregate).map { dir => + IO.copy(List(dir / "pekko-root-licenses.md" -> targetFile)).toList + }).orElse(Some(Def.task(List.empty[File]))).get }.taskValue) val settings = diff --git a/project/ProjectIndexGenerator.scala b/project/ProjectIndexGenerator.scala index 9eb655e2d5..3bc3787cd5 100644 --- a/project/ProjectIndexGenerator.scala +++ b/project/ProjectIndexGenerator.scala @@ -42,18 +42,15 @@ object ProjectIndexGenerator extends AutoPlugin { "migration-guides.md", "rolling-update.md", "issue-tracking.md", - "licenses.md" - ) + "licenses.md") val markdownFilesAfterLicense = Seq( "../additional/faq.md", "../additional/books.md", "examples.md", - "links.md" - ) + "links.md") - CliOptions.generateLicenseReportEnabled.ifTrue( - markdownFilesBeforeLicense ++ "license-report.md" - ) + CliOptions.generateLicenseReportEnabled.ifTrue( + markdownFilesBeforeLicense ++ "license-report.md") val content = s""" |# Project Information