File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -204,16 +204,27 @@ kotlin {
204204 }
205205 }
206206
207+ fun Task.addGeneratedTasks () {
208+ dependsOn(
209+ generateCharacterDirectionData,
210+ generateCharacterCategoryData,
211+ generateDerivedProperties,
212+ generateJoiningTypes,
213+ )
214+ }
215+
207216 targets.configureEach {
208217 val capitalizedTargetName =
209218 name.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale .getDefault()) else it.toString() }
210219 tasks.named(" compileKotlin$capitalizedTargetName " ) {
211- dependsOn(
212- generateCharacterDirectionData,
213- generateCharacterCategoryData,
214- generateDerivedProperties,
215- generateJoiningTypes,
216- )
220+ addGeneratedTasks()
221+ }
222+ }
223+ afterEvaluate {
224+ targets.configureEach {
225+ tasks.named(" ${name} SourcesJar" ) {
226+ addGeneratedTasks()
227+ }
217228 }
218229 }
219230
You can’t perform that action at this time.
0 commit comments