Skip to content

Commit

Permalink
Apply dependency analysis plugin to all subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
WhosNickDoglio committed Nov 21, 2024
1 parent e976169 commit 5c65134
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ dependencies {
implementation(libs.sortDependencies.gradle)
implementation(libs.spotless.gradle)
implementation(libs.composeGuard.gradle)
implementation(libs.dependencyAnalysis.gradle)
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ internal class LintPluginConfiguration: Configuration {
override fun configure(project: Project) {
project.pluginManager.apply("io.gitlab.arturbosch.detekt")
project.pluginManager.apply("com.squareup.sort-dependencies")
project.pluginManager.apply("com.autonomousapps.dependency-analysis")

project.tasks.withType(Detekt::class.java).configureEach { detekt ->
detekt.exclude { fileTreeElement -> fileTreeElement.file.path.contains("build/generated/ksp") }
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cacheFix = "3.0.1"
coroutines = "1.9.0"
circuit = "0.25.0"
compose-guard = "2.4.0"
dependencyAnalysis = "2.5.0"
work = "2.10.0"
licensee = "1.12.0"
ktfmt = "0.50"
Expand All @@ -24,7 +25,7 @@ jdk="21"
[plugins]
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
doctor = { id = "com.osacky.doctor", version = "0.10.0" }
dependency-analysis = { id = "com.autonomousapps.dependency-analysis", version = "2.5.0" }
dependency-analysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "dependencyAnalysis" }
android-app = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
android-lint = { id = "com.android.lint", version.ref = "agp" }
Expand Down Expand Up @@ -61,6 +62,7 @@ spotless-gradle = { module = "com.diffplug.spotless:spotless-plugin-gradle", ver
cacheFix-gradle = { module = "org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin", version.ref = "cacheFix" }
sortDependencies-gradle = { module = "com.squareup.sort-dependencies:com.squareup.sort-dependencies.gradle.plugin", version.ref = "sort" }
composeGuard-gradle = { module = "com.joetr.compose.guard:com.joetr.compose.guard.gradle.plugin", version.ref = "compose-guard" }
dependencyAnalysis-gradle = { module = "com.autonomousapps:dependency-analysis-gradle-plugin", version.ref = "dependencyAnalysis" }

compose-bom = { module = "androidx.compose:compose-bom", version = "2024.11.00" }
compose-ui = { module = "androidx.compose.ui:ui" }
Expand Down

0 comments on commit 5c65134

Please sign in to comment.