Skip to content

Commit d77a405

Browse files
author
Karl Rieb
committed
Fix issue in stone_legacy where input spec files are evaluated too early in the configuration phase.
1 parent 6344c01 commit d77a405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stone_legacy.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ project.sourceSets.all { SourceSet sourceSet ->
3030
outputDir = "${project.buildDir}/generated/source/stone/${sourceSet.name}"
3131
}
3232

33-
def specFiles = fileTree(dir: specDir, include: '**/*.stone')
33+
def getSpecFiles = { fileTree(dir: specDir, include: '**/*.stone') }
3434

3535
inputs.dir { project.fileTree(dir: generatorDir, exclude: '**/*.pyc') }
36-
inputs.sourceDir { specFiles }
36+
inputs.sourceDir getSpecFiles
3737
inputs.property "config", { new groovy.json.JsonBuilder(config).toString() }
3838
outputs.dir { outputDir }
3939

@@ -56,7 +56,7 @@ project.sourceSets.all { SourceSet sourceSet ->
5656
}
5757
args generatorFile.absolutePath
5858
args new File(outputDir, "src").absolutePath
59-
args specFiles.getFiles()
59+
args getSpecFiles().getFiles()
6060
args "--"
6161
args "--package", config.packageName
6262
if (config.keepUnused) {

0 commit comments

Comments
 (0)