Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/changes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

**Changed**

- Set `Main-Class` attr for KMP 1.9.0 or above. ([#1410](https://github.com/GradleUp/shadow/pull/1410))

**Fixed**

- Avoid creating jvm targets eagerly for KMP. ([#1378](https://github.com/GradleUp/shadow/pull/1378))
Expand Down
4 changes: 2 additions & 2 deletions docs/kotlin-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ automatically configure additional tasks for bundling the shadowed JAR for its `
kotlin {
@Suppress("OPT_IN_USAGE")
jvm().mainRun {
// Optionally, set the main class for `runJvm`, it's available from Kotlin 2.1.0
// Optionally, set the main class for `runJvm`.
mainClass = "myapp.MainKt"
}
sourceSets {
Expand Down Expand Up @@ -121,7 +121,7 @@ automatically configure additional tasks for bundling the shadowed JAR for its `

kotlin {
jvm().mainRun {
// Optionally, set the main class for `runJvm`, it's available from Kotlin 2.1.0
// Optionally, set the main class for `runJvm`.
it.mainClass.set('myapp.MainKt')
}
sourceSets {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class ShadowKmpPlugin : Plugin<Project> {
},
)

if (!isAtLeastKgpVersion(2, 1, 0)) return@registerShadowJarCommon
if (!isAtLeastKgpVersion(1, 9, 0)) return@registerShadowJarCommon

@OptIn(ExperimentalKotlinGradlePluginApi::class)
target.mainRun {
Expand Down