From a93ce8a0d74d7854a54b8b13e6eba6fde0e79e7d Mon Sep 17 00:00:00 2001 From: JingZhang Chen Date: Thu, 12 Oct 2023 09:43:39 +0800 Subject: [PATCH] chore: reformat code --- project/Paradox.scala | 7 ++++--- project/ProjectIndexGenerator.scala | 11 ++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/project/Paradox.scala b/project/Paradox.scala index 7c1f3d604bb..055599802cf 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 9eb655e2d5a..3bc3787cd5b 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