Skip to content

Commit

Permalink
Fix wrong usage of @Input annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed May 17, 2023
1 parent 6236343 commit af4476c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.TaskContainer
import org.gradle.api.tasks.TaskProvider
Expand All @@ -24,7 +25,7 @@ internal abstract class DownloadTranslationsTask : DefaultTask() {
@get:Input
abstract val apiToken: Property<String>

@get:Input
@get:InputFile
abstract val lokaliseCliFile: RegularFileProperty

@get:Input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.TaskContainer
import org.gradle.api.tasks.TaskProvider
Expand All @@ -30,7 +31,7 @@ internal abstract class UploadTranslationsTask : DefaultTask() {
@get:Input
abstract val arguments: ListProperty<String>

@get:Input
@get:InputFile
abstract val lokaliseCliFile: RegularFileProperty

@get:Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class DownloadAllTranslationsTaskTest {
.withArguments("downloadTranslationsForAll", "--continue")
.buildAndFail()


expectThat(result.tasks.map { it.path }).contains(
":downloadTranslationsForMain",
":downloadTranslationsForSpanishOnly"
Expand Down

0 comments on commit af4476c

Please sign in to comment.