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 2
2
3
3
## [ Unreleased] ( https://github.com/GradleUp/shadow/compare/9.0.0-beta12...HEAD ) - 2025-xx-xx
4
4
5
+ ** Changed**
6
+
7
+ - Set ` Main-Class ` attr for KMP 1.9.0 or above. ([ #1410 ] ( https://github.com/GradleUp/shadow/pull/1410 ) )
8
+
5
9
** Fixed**
6
10
7
11
- 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 `
83
83
kotlin {
84
84
@Suppress("OPT_IN_USAGE")
85
85
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`.
87
87
mainClass = "myapp.MainKt"
88
88
}
89
89
sourceSets {
@@ -121,7 +121,7 @@ automatically configure additional tasks for bundling the shadowed JAR for its `
121
121
122
122
kotlin {
123
123
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`.
125
125
it.mainClass.set('myapp.MainKt')
126
126
}
127
127
sourceSets {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public abstract class ShadowKmpPlugin : Plugin<Project> {
30
30
},
31
31
)
32
32
33
- if (! isAtLeastKgpVersion(2 , 1 , 0 )) return @registerShadowJarCommon
33
+ if (! isAtLeastKgpVersion(1 , 9 , 0 )) return @registerShadowJarCommon
34
34
35
35
@OptIn(ExperimentalKotlinGradlePluginApi ::class )
36
36
target.mainRun {
You can’t perform that action at this time.
0 commit comments