build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Nextcloud Talk application
  3. *
  4. * @author Mario Danic
  5. * @author Andy Scherzinger
  6. * Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
  7. * Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com>
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  23. buildscript {
  24. ext {
  25. kotlinVersion = '1.9.22'
  26. }
  27. repositories {
  28. google()
  29. gradlePluginPortal()
  30. mavenCentral()
  31. }
  32. dependencies {
  33. classpath 'com.android.tools.build:gradle:8.2.1'
  34. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
  35. classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
  36. classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.6'
  37. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.4"
  38. classpath "org.jlleitschuh.gradle:ktlint-gradle:12.0.3"
  39. // NOTE: Do not place your application dependencies here; they belong
  40. // in the individual module build.gradle files
  41. }
  42. }
  43. configurations.configureEach {
  44. exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
  45. // check for updates every build
  46. resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
  47. }
  48. allprojects {
  49. repositories {
  50. google()
  51. mavenCentral()
  52. maven { url 'https://jitpack.io' }
  53. gradlePluginPortal() // for jcenter mirroring, remove ASAP
  54. }
  55. }
  56. tasks.register('clean', Delete) {
  57. delete rootProject.buildDir
  58. }