Skip to content

Commit 0cf9500

Browse files
committed
fix: ignore irrelevant warnings when reducing
1 parent ebc3abb commit 0cf9500

File tree

1 file changed

+5
-0
lines changed
  • build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/publishing

1 file changed

+5
-0
lines changed

build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/publishing/JarReduction.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ fun Project.configureJarReduction(group: String) {
6161
keepattributes("Signature,InnerClasses,EnclosingMethod,MethodParameters,*Annotation*")
6262
keepparameternames()
6363
dontoptimize()
64+
65+
// Suppress warnings from multi-release JAR classes and Gradle Kotlin DSL internals
66+
dontwarn("org.gradle.internal.impldep.**")
67+
dontwarn("module-info")
68+
dontwarn("org.gradle.kotlin.dsl.**")
6469
}
6570

6671
// Configure publication of reduced JAR

0 commit comments

Comments
 (0)