Skip to content

Commit

Permalink
[build] Use capitalized target name for shadow*Jar tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 27, 2022
1 parent 3360347 commit 2e2bb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Shadow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private fun Sequence<Task>.dependsOn(

private fun Project.registerRegularShadowTask(target: KotlinTarget, mapTaskNameForMultipleTargets: Boolean): ShadowJar {
return tasks.create(
if (mapTaskNameForMultipleTargets) "shadow${target.targetName}Jar" else "shadowJar",
if (mapTaskNameForMultipleTargets) "shadow${target.targetName.capitalize()}Jar" else "shadowJar",
ShadowJar::class
) {
group = "mirai"
Expand Down

0 comments on commit 2e2bb44

Please sign in to comment.