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 {
204
204
}
205
205
}
206
206
207
+ fun Task.addGeneratedTasks () {
208
+ dependsOn(
209
+ generateCharacterDirectionData,
210
+ generateCharacterCategoryData,
211
+ generateDerivedProperties,
212
+ generateJoiningTypes,
213
+ )
214
+ }
215
+
207
216
targets.configureEach {
208
217
val capitalizedTargetName =
209
218
name.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale .getDefault()) else it.toString() }
210
219
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
+ }
217
228
}
218
229
}
219
230
You can’t perform that action at this time.
0 commit comments