diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2021-04-29 02:11:27 +0300 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2021-04-29 02:11:27 +0300 |
commit | 1d37b0bc3b690c0769904e625ad7135cb043f93b (patch) | |
tree | febf39ad1420226d5ed51bc796eada9e2e4d5a91 /app/build.gradle | |
parent | 41bf9ca7723a673005db194e082724f98b03e6e4 (diff) |
update spotbugs scripts
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 13 |
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 |