Skip to content
Closed
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
6 changes: 5 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ tasks {
}

// Fat jar
shadowJar { archiveClassifier.set("with-dependencies") }
shadowJar {
archiveClassifier = "with-dependencies"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
failOnDuplicateEntries = true
Comment on lines +114 to +115

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale behind adding those 2 lines here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exclude is the default strategy. But I suggested declaring this property explicitly in configuration at https://github.com/GradleUp/shadow/releases/tag/9.0.1

}
}

kotlin {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gradlePlugin-dokka = "2.0.0"
gradlePlugin-intelliJPlatform = "2.6.0"
gradlePlugin-ktfmt = "0.22.0"
gradlePlugin-nexusPublish = "2.0.0"
gradlePlugin-shadowJar = "9.0.0-beta13"
gradlePlugin-shadowJar = "9.0.2"

[libraries]
amazon-aws-lambda-core = { module = "com.amazonaws:aws-lambda-java-core", version.ref = "com-amazonaws-aws-lambda-java-core" }
Expand Down
Loading