refactor(build): simplify test dependency setup

This commit is contained in:
Harsh Shandilya 2023-05-05 12:24:53 +05:30
parent c10ec27b51
commit a5e25e2eb5
No known key found for this signature in database
4 changed files with 45 additions and 24 deletions

View file

@ -6,6 +6,8 @@
*/
@file:Suppress("UnstableApiUsage")
import dev.msfjarvis.claw.gradle.addTestDependencies
plugins {
id("dev.msfjarvis.claw.android-application")
id("dev.msfjarvis.claw.rename-artifacts")
@ -74,14 +76,7 @@ dependencies {
kapt(libs.dagger.compiler)
testImplementation(libs.junit.jupiter.api)
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.okhttp.mockwebserver)
testImplementation(libs.truth) { exclude(group = "junit", module = "junit") }
testRuntimeOnly(libs.junit.jupiter.engine)
testRuntimeOnly(libs.junit.legacy) {
// See https://github.com/google/truth/issues/333
because("Truth needs it")
}
addTestDependencies(project)
}