mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-05 05:14:43 +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 -> {
|
||||
kotlinSourceSets?.forEach { sourceSet ->
|
||||
if (sourceSet.name == "common") {
|
||||
if (sourceSet.name.endsWith("test", ignoreCase = true)) {
|
||||
sourceSet.dependencies {
|
||||
implementation(kotlin("test"))
|
||||
implementation(kotlin("test-annotations-common"))
|
||||
}
|
||||
} 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")
|
||||
api(kotlin("test-junit5"))
|
||||
api("org.junit.jupiter:junit-jupiter-api:5.2.0")
|
||||
runtimeOnly("org.junit.jupiter:junit-jupiter-engine:5.2.0")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user