build.gradle 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. }
  14. repositories {
  15. google()
  16. gradlePluginPortal()
  17. mavenCentral()
  18. }
  19. dependencies {
  20. classpath 'com.android.tools.build:gradle:8.3.0'
  21. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
  22. classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
  23. classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.8'
  24. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.5"
  25. classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.0"
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. configurations.configureEach {
  31. exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
  32. // check for updates every build
  33. resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
  34. }
  35. allprojects {
  36. repositories {
  37. google()
  38. mavenCentral()
  39. maven { url 'https://jitpack.io' }
  40. gradlePluginPortal() // for jcenter mirroring, remove ASAP
  41. }
  42. }
  43. tasks.register('clean', Delete) {
  44. delete rootProject.buildDir
  45. }