Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/talk-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2021-04-29 02:11:27 +0300
committerAndy Scherzinger <info@andy-scherzinger.de>2021-04-29 02:11:27 +0300
commit1d37b0bc3b690c0769904e625ad7135cb043f93b (patch)
treefebf39ad1420226d5ed51bc796eada9e2e4d5a91 /app/build.gradle
parent41bf9ca7723a673005db194e082724f98b03e6e4 (diff)
update spotbugs scripts
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle13
1 files changed, 9 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 4f085b9aa..0a0b58ecb 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -30,14 +30,19 @@ configurations {
ktlint
}
-def taskRequest = getGradle().getStartParameter().getTaskRequests().toString()
-if (taskRequest.contains("Gplay") || taskRequest.contains("findbugs") || taskRequest.contains("lint")) {
- apply from: 'gplay.gradle'
+for (TaskExecutionRequest tr : getGradle().getStartParameter().getTaskRequests()) {
+ for (String arg : tr.args) {
+ // any gplay, but only exact "build", as e.g. buildGeneric shall not apply gplay.grade
+ if (arg.contains("Gplay") || arg.contains("lint") || arg == "build") {
+ apply from: 'gplay.gradle'
+ System.console().println("Applying gplay.gradle")
+ }
+ }
}
android {
compileSdkVersion 29
- buildToolsVersion '29.0.2'
+ buildToolsVersion '30.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 29