Skip to content

Commit

Permalink
(WIP) minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Oct 9, 2024
1 parent 1a2d0f6 commit 5143f25
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sonar-kotlin-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,16 @@ tasks.shadowJar {
exclude("org/jline/**")
exclude("net/jpountz/**")
// TODO probably need only "extensions" directories - try to use eachFile{} to filter the rest
// exclude("org/jetbrains/kotlin/js/**") // 1M
// exclude("org/jetbrains/kotlin/codegen/*.class") // ?
// exclude("org/jetbrains/kotlin/backend/**") // ?
// 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/**")
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 5143f25

Please sign in to comment.