AoEiuV020JP
55 天前
implementation(platform(libs.slf4j.bom))
implementation(libs.slf4j)
runtimeOnly(libs.slf4j.android)
testImplementation(libs.slf4j.simple)
slf4j-bom = { group = "org.slf4j", name = "slf4j-bom", version.ref = "slf4j" }
slf4j = { group = "org.slf4j", name = "slf4j-api" }
slf4j-simple = { group = "org.slf4j", name = "slf4j-simple" }
slf4j-android = { group = "uk.uuid.slf4j", name = "slf4j-android", version.ref = "slf4j-android" }
// pc 端的单元测试移除无法使用的 slf4j-android ,
// 关键是 runtimeOnly 依赖不只加入 apk 中,test 也会加上,
configurations
.filter { it.name.startsWith("test") }
.forEach { conf ->
conf.exclude(module = "slf4j-android")
}
忘记为啥用这个了,