build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Nextcloud Talk - Android Client
  3. *
  4. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2021 Andy Scherzinger <info@andy-scherzinger.de>
  6. * SPDX-FileCopyrightText: 2017-2019 Mario Danic <mario@lovelyhq.com>
  7. * SPDX-License-Identifier: GPL-3.0-or-later
  8. */
  9. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  10. buildscript {
  11. ext {
  12. kotlinVersion = '1.9.23'
  13. hilt_version = '2.44'
  14. kotlinVersion = '2.0.0'
  15. }
  16. repositories {
  17. google()
  18. gradlePluginPortal()
  19. mavenCentral()
  20. }
  21. dependencies {
  22. classpath 'com.android.tools.build:gradle:8.5.1'
  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.19'
  26. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.6"
  27. classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.0"
  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. gradlePluginPortal() // for jcenter mirroring, remove ASAP
  44. }
  45. }
  46. tasks.register('clean', Delete) {
  47. delete rootProject.buildDir
  48. }