Skip to content

Commit 9742007

Browse files
committed
keep detekt happy
1 parent 3e55080 commit 9742007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gradle-plugin/plugin/src/main/java/com/yelp/codegen/plugin/GenerateTaskConfiguration.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ import java.io.File
55
import javax.inject.Inject
66
import org.gradle.api.Action
77
import org.gradle.api.Project
8+
import org.gradle.api.file.RegularFileProperty
89

910
abstract class GenerateTaskConfiguration @Inject constructor(project: Project) {
1011
val objects = project.objects
1112

1213
val platform = objects.property(String::class.java).convention("kotlin")
1314
val packageName = objects.property(String::class.java).convention("com.codegen.default")
1415
val specName = objects.property(String::class.java).convention("defaultname")
16+
abstract val inputFile: RegularFileProperty
1517
val specVersion = objects.property(String::class.java).convention(project.provider {
1618
readVersionFromSpecfile(inputFile.get().asFile)
1719
})
18-
val inputFile = objects.fileProperty()
1920
val outputDir = objects.directoryProperty().convention(project.layout.buildDirectory.dir(DEFAULT_OUTPUT_DIR).get())
2021

2122
val extraFiles = objects.directoryProperty()

0 commit comments

Comments
 (0)