From 6452da67069359bc7dd551e421054410b99c0a51 Mon Sep 17 00:00:00 2001 From: Kengo TODA Date: Sat, 6 Jun 2020 15:41:11 +0800 Subject: [PATCH] docs: introduce how to use SpotBugs in the Android project close #90 --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88efb687..34e5a3c9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This Gradle plugin is designed to solve the following problems in the legacy plu - [x] Remove any dependency on the Gradle's internal API - [x] Solve mutability problem for the build contains multiple projects and/or sourceSet - [x] Native Support for [the Parallel Build](https://guides.gradle.org/using-the-worker-api/) -- [ ] Native Support for [the Android project](https://developer.android.com/studio/build/gradle-tips) +- [x] Native Support for [the Android project](https://developer.android.com/studio/build/gradle-tips) - [x] Missing user document about how to use extension and task ## Usage @@ -73,7 +73,10 @@ If you want to create and configure `SpotBugsTask` by own, apply the base plugin ### Apply to Android project -TBU +Apply this plugin with the `com.android.application` plugin or `com.android.library` plugin to your project, +then [`SpotBugsTask`](https://spotbugs-gradle-plugin.netlify.com/com/github/spotbugs/snom/spotbugstask) will be generated for each existing variant. + +If you want to create and configure `SpotBugsTask` by own, apply the base plugin (`com.github.spotbugs-base`) instead, then it won't create tasks automatically. ### Configure the SpotBugsTask