Skip to content

Commit 5630b90

Browse files
authored
Make the Dependency Analysis plugin only fails for unused dependencies (#526)
1 parent 84ec709 commit 5630b90

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- name: Run Dependency Analysis
111111
run: ./gradlew buildHealth
112112
- name: Display analysis report
113-
if: failure()
113+
if: ${{ !cancelled() }}
114114
run: cat build/reports/dependency-analysis/build-health-report.txt
115115

116116
unit-test:

build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,12 @@ tasks.getByPath(":pillarbox-demo:preBuild").dependsOn(":installGitHook")
8080
dependencyAnalysis {
8181
issues {
8282
all {
83-
onAny {
83+
onUnusedDependencies {
8484
severity("fail")
8585
}
8686
}
8787

8888
structure {
89-
// https://github.com/autonomousapps/dependency-analysis-gradle-plugin/wiki/Customizing-plugin-behavior
90-
ignoreKtx(true) // default is false
91-
9289
// Required because of https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/892
9390
bundle("kotlin-test") {
9491
includeDependency(libs.kotlin.test)

gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ org.gradle.parallel=true
1919
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2020
android.useAndroidX=true
2121

22-
# https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/1079#issuecomment-1862266603
23-
dependency.analysis.test.analysis=false
24-
2522
# Kotlin code style for this project: "official" or "obsolete":
2623
kotlin.code.style=official
2724

0 commit comments

Comments
 (0)