Sven Wollinger
04/26/2024, 7:47 AMval commonMain by getting {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material3)
api(compose.materialIconsExtended)
implementation("org.cloudburstmc.protocol:bedrock-connection:3.0.0.Beta1-SNAPSHOT")
implementation("io.wollinger:serverchest-api:0.0.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
}
}
My own local dependency (maven local, io.wollinger:serverchest) works fine, "bedrock-connection" gets pulled correctly too and shows up.
If i run the desktop version it runs fine, but on android it complains about duplicate classes:
Duplicate class it.unimi.dsi.fastutil.objects.ObjectObjectImmutablePair found in modules jetified-core-8.5.13-SNAPSHOT (org.cloudburstmc.fastutil:core:8.5.13-SNAPSHOT:20230812.171723-2) and jetified-object-common-8.5.13-SNAPSHOT (org.cloudburstmc.fastutil.commons:object-common:8.5.13-SNAPSHOT:20230812.171723-2)
Ive before "fixed" this by building the library as a jar and manually removing duplicate files.
Can anyone help me figure out the correct way to properly exclude those or just tell android to "Exclude" duplicate files, like you would on a "normal" gradle jar task?Sven Wollinger
04/26/2024, 8:00 AMimplementation("org.cloudburstmc.protocol:bedrock-connection:3.0.0.Beta1-SNAPSHOT") {
exclude("org.cloudburstmc.fastutil.commons", "object-common")
}