File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
gradle-plugin/plugin/src/main/java/com/yelp/codegen/plugin Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,18 @@ import java.io.File
5
5
import javax.inject.Inject
6
6
import org.gradle.api.Action
7
7
import org.gradle.api.Project
8
+ import org.gradle.api.file.RegularFileProperty
8
9
9
10
abstract class GenerateTaskConfiguration @Inject constructor(project : Project ) {
10
11
val objects = project.objects
11
12
12
13
val platform = objects.property(String ::class .java).convention(" kotlin" )
13
14
val packageName = objects.property(String ::class .java).convention(" com.codegen.default" )
14
15
val specName = objects.property(String ::class .java).convention(" defaultname" )
16
+ abstract val inputFile: RegularFileProperty
15
17
val specVersion = objects.property(String ::class .java).convention(project.provider {
16
18
readVersionFromSpecfile(inputFile.get().asFile)
17
19
})
18
- val inputFile = objects.fileProperty()
19
20
val outputDir = objects.directoryProperty().convention(project.layout.buildDirectory.dir(DEFAULT_OUTPUT_DIR ).get())
20
21
21
22
val extraFiles = objects.directoryProperty()
You can’t perform that action at this time.
0 commit comments