build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Nextcloud Talk - Android Client
  3. *
  4. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2024 Marcel Hibbe <dev@mhibbe.de>
  6. * SPDX-FileCopyrightText: 2021 Andy Scherzinger <info@andy-scherzinger.de>
  7. * SPDX-FileCopyrightText: 2017-2019 Mario Danic <mario@lovelyhq.com>
  8. * SPDX-License-Identifier: GPL-3.0-or-later
  9. */
  10. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  11. buildscript {
  12. ext {
  13. kotlinVersion = '2.0.20'
  14. hilt_version = '2.44'
  15. }
  16. repositories {
  17. google()
  18. gradlePluginPortal()
  19. mavenCentral()
  20. }
  21. dependencies {
  22. classpath 'com.android.tools.build:gradle:8.6.0'
  23. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
  24. classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
  25. classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.22'
  26. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7"
  27. classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.1"
  28. classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
  29. // NOTE: Do not place your application dependencies here; they belong
  30. // in the individual module build.gradle files
  31. }
  32. }
  33. configurations.configureEach {
  34. exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
  35. // check for updates every build
  36. resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
  37. }
  38. allprojects {
  39. repositories {
  40. google()
  41. mavenCentral()
  42. maven { url 'https://jitpack.io' }
  43. }
  44. }
  45. tasks.register('clean', Delete) {
  46. delete rootProject.buildDir
  47. }