Skip to content

Commit

Permalink
Use Gradle Provider API
Browse files Browse the repository at this point in the history
  • Loading branch information
psibre committed Feb 15, 2023
1 parent bfc9edd commit fa9a7bf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def unpackDataTask = tasks.register('unpackData') {
}

convertTextToMaryXml {
locale = Locale.forLanguageTag('hsb')
srcDir = unpackDataTask.get().textDir
locale.set Locale.forLanguageTag('hsb')
srcDir.set unpackDataTask.get().textDir
}

prepareForcedAlignment {
wavDir = unpackDataTask.get().wavDir
wavDir.set unpackDataTask.get().wavDir
}

generateComments {
Expand All @@ -90,18 +90,18 @@ generateFlac {
}

generateYaml {
yamlFile = file("${project.name}.yaml")
yamlFile.set file("${project.name}.yaml")
}

injectText {
yamlSrcFile = generateYaml.yamlFile
textDir = unpackDataTask.get().textDir
yamlDestFile = file("${project.name}_text.yaml")
yamlSrcFile.set generateYaml.yamlFile
textDir.set unpackDataTask.get().textDir
yamlDestFile.set file("${project.name}_text.yaml")
}

injectSegments {
yamlSrcFile = injectText.yamlDestFile
labDir = tasks.named('convertTextGridToXLab').get().destDir
yamlSrcFile.set injectText.yamlDestFile
labDir.set tasks.named('convertTextGridToXLab').get().destDir
}

artifacts {
Expand Down

0 comments on commit fa9a7bf

Please sign in to comment.