在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):autonomousapps/dependency-analysis-android-gradle-plugin开源软件地址(OpenSource Url):https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin开源编程语言(OpenSource Language):Kotlin 59.7%开源软件介绍(OpenSource Introduction):Detect unused and misused dependenciesThe Dependency Analysis Gradle Plugin (née Dependency Analysis Android Gradle Plugin) detects the following:
As a side effect, the plugin can also tell you your project’s ABI, and produces graphviz files representing various views of your dependency graph, among other things. These side effects are currently mostly undocumented internal behaviors, but they may be interesting for some advanced users. Add to your project and useFor detailed instructions, see the wiki. The simplest approach is to add the following: root build.gradle
plugins {
id 'com.autonomousapps.dependency-analysis' version "<<latest_version>>"
} For a quick start, just run the following: ./gradlew buildHealth More advanced usageProject HealthYou can also run the analysis against individual modules with the ./gradlew app:projectHealth ReasonYou may be curious why the plugin is emitting (or not emitting) advice regarding some dependency. You can ask it why: ./gradlew lib:reason --id com.squareup.okio:okio:2.2.2 (1) > Task :lib:reason ---------------------------------------- You asked about the dependency 'com.squareup.okio:okio:2.2.2'. There is no advice regarding this dependency. ---------------------------------------- Shortest path from :lib to com.squareup.okio:okio:2.2.2: :lib \--- com.squareup.okio:okio:2.2.2 Source: main ------------ * Exposes class okio.BufferedSource (implies api).
Basic configurationFor detailed information on how to configure the plugin, see the wiki. To configure the plugin, use the build.gradle
dependencyAnalysis {
// configuration goes here
} Two modelsAt time of writing, there are two distinct models available for conducting dependency analysis. By default, from version
1.0.0-rc01, the plugin uses the "new model." With that version, you may switch to the "old model" via the system
property PublicationsThe following is a list of articles / blog posts that have been published discussing this plugin: …with more to come :) This plugin has also been featured in these newsletters: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论