Remove forced junit resolution strategy

By looking at the Gradle scan's dependency tab, junit 4.12  is already replaced by 4.13.2.
There is no need to manually force this at the configuration level.
pull/806/head
Simon Marquis 2 years ago
parent d332f7b70d
commit 0a3069a0d8

@ -121,10 +121,3 @@ dependencies {
implementation(libs.androidx.profileinstaller)
implementation(libs.coil.kt)
}
// androidx.test is forcing JUnit, 4.12. This forces it to use 4.13
configurations.configureEach {
resolutionStrategy {
force(libs.junit4)
}
}

@ -21,7 +21,6 @@ import com.google.samples.apps.nowinandroid.configureGradleManagedDevices
import com.google.samples.apps.nowinandroid.configureKotlinAndroid
import com.google.samples.apps.nowinandroid.configurePrintApksTask
import com.google.samples.apps.nowinandroid.disableUnnecessaryAndroidTests
import com.google.samples.apps.nowinandroid.libs
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
@ -46,11 +45,6 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
configurePrintApksTask(this)
disableUnnecessaryAndroidTests(target)
}
configurations.configureEach {
resolutionStrategy {
force(libs.findLibrary("junit4").get())
}
}
dependencies {
add("androidTestImplementation", kotlin("test"))
add("testImplementation", kotlin("test"))

Loading…
Cancel
Save