Skip to content

Commit 70cfa6f

Browse files
committed
Apply ShadowJavaPlugin for org.jetbrains.kotlin.multiplatform
1 parent e76f49a commit 70cfa6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public abstract class ShadowPlugin : Plugin<Project> {
1919
withType(ApplicationPlugin::class.java) {
2020
apply(ShadowApplicationPlugin::class.java)
2121
}
22+
withId("org.jetbrains.kotlin.multiplatform") {
23+
apply(ShadowJavaPlugin::class.java)
24+
}
25+
2226
// Apply the legacy plugin last.
2327
// Because we apply the ShadowJavaPlugin/ShadowApplication plugin in a withType callback for the
2428
// respective JavaPlugin/ApplicationPlugin, it may still apply before the shadowJar task is created etc.

0 commit comments

Comments
 (0)