Update build files to latest DSL

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2023-12-13 14:01:17 +01:00
parent f9502462c7
commit 2f17706323
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 7 additions and 7 deletions

View file

@ -158,7 +158,7 @@ ext {
media3_version = "1.2.0"
}
configurations.all {
configurations.configureEach {
exclude group: 'com.google.firebase', module: 'firebase-core'
exclude group: 'com.google.firebase', module: 'firebase-analytics'
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
@ -315,7 +315,7 @@ dependencies {
implementation 'com.github.nextcloud-deps:android-talk-webrtc:110.5481.0'
}
task installGitHooks(type: Copy, group: "development") {
tasks.register('installGitHooks', Copy) {
description = "Install git hooks"
from("../scripts/hooks") {
include '*'
@ -329,7 +329,7 @@ spotbugs {
reportLevel = Confidence.valueOf('MEDIUM')
}
tasks.withType(SpotBugsTask) { task ->
tasks.withType(SpotBugsTask).configureEach { task ->
String variantNameCap = task.name.replace("spotbugs", "")
String variantName = variantNameCap.substring(0, 1).toLowerCase() + variantNameCap.substring(1)
@ -360,6 +360,6 @@ tasks.named("detekt").configure {
}
detekt {
config = files("../detekt.yml")
input = files("src/")
config.setFrom("../detekt.yml")
source.setFrom("src/")
}

View file

@ -46,7 +46,7 @@ buildscript {
}
}
configurations.all {
configurations.configureEach {
exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
@ -61,6 +61,6 @@ allprojects {
}
}
task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}