Skip to content

Commit

Permalink
Apply dependency analysis plugin via jvm-library precompiled plugin
Browse files Browse the repository at this point in the history
targeting only projects where it is relevant
  • Loading branch information
alllex committed Jan 17, 2025
1 parent 6fcbf0a commit 98e9575
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 33 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
plugins {
id("gradlebuild.buildscan") // Reporting: Add more data through custom tags to build scans
id("gradlebuild.ide") // Local development: Tweak IDEA import
id("gradlebuild.dependency-analysis") // Auditing dependencies to find unused libraries
id("gradlebuild.warmup-ec2") // Warm up EC2 AMI

id("com.autonomousapps.dependency-analysis") apply false // Applied via pre-compiled script plugin to relevant projects
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,21 @@ plugins {
id("gradlebuild.ci-lifecycle")
id("gradlebuild.ci-reporting") // CI: Prepare reports to be uploaded to TeamCity
id("gradlebuild.configure-ci-artifacts") // CI: Prepare reports to be uploaded to TeamCity
id("com.autonomousapps.dependency-analysis") // Auditing dependencies to find unused libraries
}

configure<DependencyAnalysisSubExtension> {
issues {
onAny {
severity("fail")
}

onUnusedAnnotationProcessors {
// Ignore check for internal-instrumentation-processor, since we apply
// it to all distribution.api-java projects but projects might not have any upgrade
exclude(":internal-instrumentation-processor")
}

ignoreSourceSet("archTest", "crossVersionTest", "docsTest", "integTest", "jmh", "peformanceTest", "smokeTest", "testInterceptors", "testFixtures", "smokeIdeTest")
}
}
13 changes: 0 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,3 @@ plugins {
}

description = "Adaptable, fast automation for all"

dependencyAnalysis {
issues {
all {
onUnusedAnnotationProcessors {
// Ignore check for internal-instrumentation-processor, since we apply
// it to all distribution.api-java projects but projects might not have any upgrade
exclude(":internal-instrumentation-processor")
}
ignoreSourceSet("archTest", "crossVersionTest", "docsTest", "integTest", "jmh", "peformanceTest", "smokeTest", "testInterceptors", "testFixtures", "smokeIdeTest")
}
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ develocity.internal.testdistribution.queryResponseTimeout=PT20S
defaultPerformanceBaselines=8.13-commit-a6bf0de82e44
#-----------------------------------------till here^
systemProp.dependency.analysis.test.analysis=false
dependency.analysis.autoapply=false
# If enabled, the build scans is tagged with TD_REMOTE_EXECUTOR_ENQUEUED_IN_WRONG_STATE if a remote executor is trying to be enqueued in a wrong state
systemProp.develocity.internal.testacceleration.enableCustomValues=true

0 comments on commit 98e9575

Please sign in to comment.