Skip to content

Commit e628e66

Browse files
authored
Use @InputFile on RepositoryConfig#getCustomKeyFile (#560)
Gradle displays this message (without failing) with version 7.6: > Task :currentVersion Execution optimizations have been disabled for task ':currentVersion' to ensure correctness due to the following reasons: - In plugin 'pl.allegro.tech.build.axion.release.ReleasePlugin$Inject' type 'pl.allegro.tech.build.axion.release.OutputCurrentVersionTask' property 'versionConfig.repository.customKeyFile' has @input annotation used on property of type 'RegularFileProperty'. Reason: A property of type 'RegularFileProperty' annotated with @input cannot determine how to interpret the file. Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem. Fixes #559
1 parent c73b032 commit e628e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/groovy/pl/allegro/tech/build/axion/release/domain/RepositoryConfig.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import org.gradle.api.provider.Property
77
import org.gradle.api.provider.Provider
88
import org.gradle.api.tasks.Input
99
import org.gradle.api.tasks.InputDirectory
10+
import org.gradle.api.tasks.InputFile
1011
import org.gradle.api.tasks.Optional
1112

1213
import javax.inject.Inject
@@ -56,7 +57,7 @@ abstract class RepositoryConfig extends BaseExtension {
5657
@Optional
5758
abstract Property<String> getCustomKey()
5859

59-
@Input
60+
@InputFile
6061
@Optional
6162
abstract RegularFileProperty getCustomKeyFile()
6263

0 commit comments

Comments
 (0)