Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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 Expand Up @@ -621,7 +625,7 @@
- [Sergey Tselovalnikov](https://github.com/SerCeMan) - Upgrade to ASM 6.2.1 to support Java 11
- [Chris Cowan](https://github.com/Macil) - Add support for `shadowJar.preserveFileTimestamps` property.
See [Jar.preserveFileTimestamps](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:preserveFileTimestamps)
- [Paul N. Baker](https://github.com/niko-dunixi) - Add `Log4j2PluginsCacheFileTransformer` to process Log4j DAT files

Check failure on line 628 in docs/changes/README.md

View workflow job for this annotation

GitHub Actions / Linkspector

[linkspector] docs/changes/README.md#L628

Cannot reach https://github.com/niko-dunixi Status: 404
Raw output
message:"Cannot reach https://github.com/niko-dunixi Status: 404" location:{path:"docs/changes/README.md" range:{start:{line:628 column:3} end:{line:628 column:50}}} severity:ERROR source:{name:"linkspector" url:"https://github.com/UmbrellaDocs/linkspector"}
during merge.
- [Felipe Lima](https://github.com/felipecsl) - Fix the long standing "No property `mainClassName`" issue.
- [debanne](https://github.com/debanne) - Implement JAR minimization actions. This will attempt to exclude unused
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
Loading