Skip to content

Commit

Permalink
chore: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
Roiocam committed Oct 12, 2023
1 parent 23e9c36 commit a93ce8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 4 additions & 3 deletions project/Paradox.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
11 changes: 4 additions & 7 deletions project/ProjectIndexGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a93ce8a

Please sign in to comment.