Skip to content

Commit afbae30

Browse files
authored
1 parent b6143ef commit afbae30

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/changes/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased](https://github.com/GradleUp/shadow/compare/9.0.0-beta12...HEAD) - 2025-xx-xx
44

5+
**Changed**
6+
7+
- Set `Main-Class` attr for KMP 1.9.0 or above. ([#1410](https://github.com/GradleUp/shadow/pull/1410))
8+
59
**Fixed**
610

711
- Avoid creating jvm targets eagerly for KMP. ([#1378](https://github.com/GradleUp/shadow/pull/1378))

docs/kotlin-plugins/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ automatically configure additional tasks for bundling the shadowed JAR for its `
8383
kotlin {
8484
@Suppress("OPT_IN_USAGE")
8585
jvm().mainRun {
86-
// Optionally, set the main class for `runJvm`, it's available from Kotlin 2.1.0
86+
// Optionally, set the main class for `runJvm`.
8787
mainClass = "myapp.MainKt"
8888
}
8989
sourceSets {
@@ -121,7 +121,7 @@ automatically configure additional tasks for bundling the shadowed JAR for its `
121121

122122
kotlin {
123123
jvm().mainRun {
124-
// Optionally, set the main class for `runJvm`, it's available from Kotlin 2.1.0
124+
// Optionally, set the main class for `runJvm`.
125125
it.mainClass.set('myapp.MainKt')
126126
}
127127
sourceSets {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public abstract class ShadowKmpPlugin : Plugin<Project> {
3030
},
3131
)
3232

33-
if (!isAtLeastKgpVersion(2, 1, 0)) return@registerShadowJarCommon
33+
if (!isAtLeastKgpVersion(1, 9, 0)) return@registerShadowJarCommon
3434

3535
@OptIn(ExperimentalKotlinGradlePluginApi::class)
3636
target.mainRun {

0 commit comments

Comments
 (0)