Skip to content

Commit

Permalink
Merge pull request #148 from wordpress-mobile/build/dependency-analys…
Browse files Browse the repository at this point in the history
…is-android-gradle-plugin

[Dependency Analysis] Add Android Gradle Plugin
  • Loading branch information
ParaskP7 authored Jul 5, 2024
2 parents ba2227b + 7cdd059 commit 5063601
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .buildkite/schedules/dependency-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.15.0

agents:
queue: "android"

steps:
- label: "dependency analysis"
command: |
echo "--- 📊 Analyzing"
cp gradle.properties-example gradle.properties
./gradlew buildHealth
plugins: *common_plugins
artifact_paths:
- "build/reports/dependency-analysis/build-health-report.*"
notify:
- slack: "#android-core-notifs"
if: build.state == "failed"
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id "com.android.library" apply false
id "org.jetbrains.kotlin.android" apply false
id "com.autonomousapps.dependency-analysis"
}

allprojects {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties-example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ android.useAndroidX=true
android.enableJetifier=false

android.nonTransitiveRClass=true

# Dependency Analysis Plugin
dependency.analysis.android.ignored.variants=release
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ pluginManagement {
gradle.ext.kotlinVersion = '1.9.22'
gradle.ext.agpVersion = '8.1.0'
gradle.ext.automatticPublishToS3Version = '0.9.0'
gradle.ext.dependencyAnalysisVersion = '1.28.0'

plugins {
id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion
id "com.android.library" version gradle.ext.agpVersion
id "com.automattic.android.publish-to-s3" version gradle.ext.automatticPublishToS3Version
id "com.autonomousapps.dependency-analysis" version gradle.ext.dependencyAnalysisVersion
}
repositories {
maven {
Expand Down

0 comments on commit 5063601

Please sign in to comment.