Skip to content

Commit

Permalink
fixed by shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarponi committed Nov 8, 2024
1 parent e698b3c commit 50dd483
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,32 @@ dependencies {
"org.jetbrains.idea.reposearch",
"com.jetbrains.performancePlugin",
)
bundledModule(
"intellij.platform.compose"
)
// bundledModule(
// "intellij.platform.compose"
// )
}

implementation(compose.desktop.currentOs) {
implementation(compose.desktop.linux_x64) {
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.kotlinx")
}
implementation(compose.desktop.linux_arm64) {
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.kotlinx")
}
implementation(compose.desktop.windows_x64) {
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.kotlinx")
}
implementation(compose.desktop.macos_arm64) {
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.kotlinx")
}
implementation(compose.desktop.macos_x64) {
exclude(group = "org.jetbrains.compose.material")
exclude(group = "org.jetbrains.kotlinx")
}

implementation(packageSearchCatalog.jewel.bridge.ij243) //compileonly???
implementation(packageSearchCatalog.kotlinx.serialization.core)
implementation(packageSearchCatalog.compose.desktop.components.splitpane) {
Expand Down Expand Up @@ -97,6 +114,10 @@ tasks {
exclude { it.name.containsAny(JAR_NAMES_TO_REMOVE) }
exclude { it.name == "module-info.class" }
exclude { it.name.endsWith("kotlin_module") }
relocate("androidx.*", "shadow.androidx.*")
relocate("org.jetbrains.jewel.*", "shadow.org.jetbrains.jewel.*")
relocate("org.jetbrains.compose.*", "shadow.org.jetbrains.compose.*")
relocate("com.jetbrains.compose.*", "shadow.com.jetbrains.compose.*")
}

val buildShadowPlugin by registering(Zip::class) {
Expand Down

0 comments on commit 50dd483

Please sign in to comment.