1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 04:50:26 +08:00

[build] Add notes to configureRelocationForCore

This commit is contained in:
Him188 2022-10-03 12:44:41 +01:00
parent 394c0a5b4e
commit faa7ebeaba
No known key found for this signature in database
GPG Key ID: BA439CDDCF652375

View File

@ -263,6 +263,9 @@ private fun ShadowJar.setRelocations() {
}
fun Project.configureRelocationForCore() {
// WARNING: You must also consider relocating transitive dependencies.
// Otherwise, user will get NoClassDefFound error when using mirai as a classpath dependency. See #2263.
relocateAllFromGroupId("io.ktor")
relocateAllFromGroupId("com.squareup.okhttp3")
relocateAllFromGroupId("com.squareup.okio")