Skip to content

Commit

Permalink
Revert "(WIP) minimize"
Browse files Browse the repository at this point in the history
Because of

    java.lang.NoClassDefFoundError: org/jetbrains/kotlin/js/descriptorUtils/DescriptorUtilsKt
    at org.sonarsource.kotlin.checks.VoidShouldBeUnitCheckKt.isJavaLangVoid(VoidShouldBeUnitCheck.kt:114)

And

    java.util.ServiceConfigurationError:
    org.jetbrains.kotlin.resolve.jvm.jvmSignature.KotlinToJvmSignatureMapper:
    Provider org.jetbrains.kotlin.codegen.signature.KotlinToJvmSignatureMapperImpl not found
  • Loading branch information
Godin committed Oct 10, 2024
1 parent 5143f25 commit 4892cc1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions sonar-kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,9 @@ tasks.shadowJar {
exclude("org/jline/**")
exclude("net/jpountz/**")
// TODO probably need only "extensions" directories - try to use eachFile{} to filter the rest
// unfortunately eachFile is about JARs
// try https://github.com/GradleUp/gr8 ?
// exclude{} seems to work
exclude { it.path.startsWith("org/jetbrains/kotlin/js/") && !it.path.contains("/extensions/") }
exclude { it.path.startsWith("org/jetbrains/kotlin/codegen/") && !it.path.contains("/extensions/") }
exclude { it.path.startsWith("org/jetbrains/kotlin/backend/") && !it.path.contains("/extensions/") }
// TODO what about "com/sun/jna" ?
exclude("com/sun/jna/**")
// TODO what about "org/fusesource/jansi/internal/native/" ?
exclude("com/fusesource/jansi/**")
// exclude("org/jetbrains/kotlin/js/**") // 1M
// exclude("org/jetbrains/kotlin/codegen/*.class") // ?
// exclude("org/jetbrains/kotlin/backend/**") // ?
dependencies {
exclude(dependency("org.jetbrains.kotlin:high-level-api-fir-for-ide"))
exclude(dependency("org.jetbrains.kotlin:low-level-api-fir-for-ide"))
Expand Down

0 comments on commit 4892cc1

Please sign in to comment.