File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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 ) )
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments