Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Jul 5, 2023
1 parent 2031f72 commit 88e9245
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,7 @@ internal abstract class MissingIdentifiersAggregatorTask : DefaultTask() {
@get:PathSensitive(PathSensitivity.RELATIVE)
abstract val inputFiles: ConfigurableFileCollection

@get:OutputFile
abstract val outputFile: RegularFileProperty
@get:OutputFile abstract val outputFile: RegularFileProperty

init {
group = "rake"
Expand All @@ -426,9 +425,7 @@ internal abstract class MissingIdentifiersAggregatorTask : DefaultTask() {

@TaskAction
fun aggregate() {
val aggregated = inputFiles
.flatMap { it.readLines() }
.toSortedSet()
val aggregated = inputFiles.flatMap { it.readLines() }.toSortedSet()

val output = outputFile.asFile.get()
logger.lifecycle("Writing aggregated missing identifiers to $output")
Expand All @@ -440,7 +437,9 @@ internal abstract class MissingIdentifiersAggregatorTask : DefaultTask() {

fun register(rootProject: Project): TaskProvider<MissingIdentifiersAggregatorTask> {
return rootProject.tasks.register(NAME, MissingIdentifiersAggregatorTask::class.java) {
outputFile.set(rootProject.layout.buildDirectory.file("rake/aggregated_missing_identifiers.txt"))
outputFile.set(
rootProject.layout.buildDirectory.file("rake/aggregated_missing_identifiers.txt")
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ internal class StandardProjectConfigurations(
)
}
configure<DependencyAnalysisSubExtension> { registerPostProcessingTask(rakeDependencies) }
val aggregator = project.rootProject.tasks.named<MissingIdentifiersAggregatorTask>(MissingIdentifiersAggregatorTask.NAME)
val aggregator =
project.rootProject.tasks.named<MissingIdentifiersAggregatorTask>(
MissingIdentifiersAggregatorTask.NAME
)
aggregator.configure {
inputFiles.from(rakeDependencies.flatMap { it.missingIdentifiersFile })
}
Expand Down

0 comments on commit 88e9245

Please sign in to comment.