mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +05:30
refactor: slim down per-module dependencies
dependency-analysis plugin coming in clutch as usual
This commit is contained in:
parent
541acf4ef1
commit
eed64b95df
7 changed files with 2 additions and 99 deletions
|
@ -71,10 +71,6 @@ class SentryPlugin : Plugin<Project> {
|
|||
telemetry.set(false)
|
||||
telemetryDsn.set(null)
|
||||
}
|
||||
with(project.dependencies) {
|
||||
addProvider("implementation", platform(libs.sentry.bom))
|
||||
addProvider("implementation", libs.sentry.android)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,12 +16,11 @@ import org.gradle.kotlin.dsl.exclude
|
|||
/** Extension function to configure JUnit5 dependencies with the Truth assertion library. */
|
||||
fun DependencyHandlerScope.addTestDependencies(project: Project) {
|
||||
val libs = project.extensions.getByName("libs") as LibrariesForLibs
|
||||
arrayOf("test", "androidTest", "screenshotTest")
|
||||
arrayOf("test", "screenshotTest")
|
||||
.filter { sourceSet -> project.configurations.findByName("${sourceSet}Implementation") != null }
|
||||
.forEach { sourceSet ->
|
||||
addProvider("${sourceSet}Implementation", platform(libs.junit.bom))
|
||||
addProvider("${sourceSet}Implementation", libs.junit.jupiter.api)
|
||||
addProviderConvertible("${sourceSet}Implementation", libs.junit.jupiter)
|
||||
addProvider<MinimalExternalModuleDependency, ExternalModuleDependency>(
|
||||
"${sourceSet}Implementation",
|
||||
libs.truth,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue