build.gradle 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.5.21'
  26. }
  27. repositories {
  28. google()
  29. jcenter()
  30. maven { url 'https://jitpack.io' }
  31. maven { url 'https://plugins.gradle.org/m2/' }
  32. mavenCentral()
  33. }
  34. dependencies {
  35. classpath 'com.android.tools.build:gradle:4.1.3'
  36. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
  37. classpath 'gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.5'
  38. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.18.1"
  39. // NOTE: Do not place your application dependencies here; they belong
  40. // in the individual module build.gradle files
  41. }
  42. }
  43. configurations.all {
  44. // check for updates every build
  45. resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
  46. }
  47. allprojects {
  48. repositories {
  49. google()
  50. jcenter()
  51. maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  52. maven { url 'https://jitpack.io' }
  53. maven { url 'https://maven.google.com' }
  54. mavenCentral()
  55. }
  56. }
  57. task clean(type: Delete) {
  58. delete rootProject.buildDir
  59. }