mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-10 09:57:14 +08:00
Remove mistakenly added kotlin-test dependencies in main source sets
This commit is contained in:
parent
95688e37af
commit
4d3f8ad56b
@ -270,17 +270,11 @@ fun Project.configureKotlinTestSettings() {
|
|||||||
}
|
}
|
||||||
isKotlinMpp -> {
|
isKotlinMpp -> {
|
||||||
kotlinSourceSets?.forEach { sourceSet ->
|
kotlinSourceSets?.forEach { sourceSet ->
|
||||||
if (sourceSet.name == "common") {
|
if (sourceSet.name.endsWith("test", ignoreCase = true)) {
|
||||||
sourceSet.dependencies {
|
sourceSet.dependencies {
|
||||||
implementation(kotlin("test"))
|
api(kotlin("test-junit5"))
|
||||||
implementation(kotlin("test-annotations-common"))
|
api("org.junit.jupiter:junit-jupiter-api:5.2.0")
|
||||||
}
|
runtimeOnly("org.junit.jupiter:junit-jupiter-engine:5.2.0")
|
||||||
} else {
|
|
||||||
sourceSet.dependencies {
|
|
||||||
implementation(kotlin("test-junit5"))
|
|
||||||
|
|
||||||
implementation("org.junit.jupiter:junit-jupiter-api:5.2.0")
|
|
||||||
implementation("org.junit.jupiter:junit-jupiter-engine:5.2.0")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user