Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit c9a2bd4

Browse files
committed
refactor(build): cleanup ktfmt code
1 parent f583939 commit c9a2bd4

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtFormatTask.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@ constructor(
1616
private val projectLayout: ProjectLayout,
1717
) : SourceTask() {
1818

19-
init {
20-
outputs.upToDateWhen { false }
21-
}
22-
2319
@TaskAction
2420
fun execute() {
2521
val result =
2622
with(workerExecutor.noIsolation()) {
2723
submit(KtfmtWorkerAction::class.java) {
28-
name.set("foofoo")
24+
name.set("ktfmt-worker")
2925
files.from(source)
3026
projectDirectory.set(projectLayout.projectDirectory.asFile)
3127
}
@@ -49,9 +45,4 @@ constructor(
4945
}
5046
.filterNotNull()
5147
}
52-
53-
companion object {
54-
55-
private const val PARALLEL_TASK_LIMIT = 4
56-
}
5748
}

build-logic/src/main/kotlin/app/passwordstore/gradle/ktfmt/KtfmtWorkerParameters.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ interface KtfmtWorkerParameters : WorkParameters {
99
val name: Property<String>
1010
val files: ConfigurableFileCollection
1111
val projectDirectory: RegularFileProperty
12-
val output: RegularFileProperty
1312
}

0 commit comments

Comments
 (0)