mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-28 21:07:39 +00:00
refactor(build): cleanup ktfmt code
This commit is contained in:
parent
f583939635
commit
c9a2bd4e40
@ -16,16 +16,12 @@ constructor(
|
||||
private val projectLayout: ProjectLayout,
|
||||
) : SourceTask() {
|
||||
|
||||
init {
|
||||
outputs.upToDateWhen { false }
|
||||
}
|
||||
|
||||
@TaskAction
|
||||
fun execute() {
|
||||
val result =
|
||||
with(workerExecutor.noIsolation()) {
|
||||
submit(KtfmtWorkerAction::class.java) {
|
||||
name.set("foofoo")
|
||||
name.set("ktfmt-worker")
|
||||
files.from(source)
|
||||
projectDirectory.set(projectLayout.projectDirectory.asFile)
|
||||
}
|
||||
@ -49,9 +45,4 @@ constructor(
|
||||
}
|
||||
.filterNotNull()
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
private const val PARALLEL_TASK_LIMIT = 4
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,4 @@ interface KtfmtWorkerParameters : WorkParameters {
|
||||
val name: Property<String>
|
||||
val files: ConfigurableFileCollection
|
||||
val projectDirectory: RegularFileProperty
|
||||
val output: RegularFileProperty
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user