build.gradle 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Nextcloud - Android Client
  3. *
  4. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper.ozturk@nextcloud.com>
  6. * SPDX-FileCopyrightText: 2023 Tobias Kaminsky <tobias@kaminsky.me>
  7. * SPDX-FileCopyrightText: 2022 Álvaro Brey Vilas <alvaro@alvarobrey.com>
  8. * SPDX-FileCopyrightText: 2016 Andy Scherzinger <info@andy-scherzinger.de>
  9. * SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
  10. */
  11. buildscript {
  12. ext {
  13. androidLibraryVersion ="ceb3812b688f2288911acf4d917596283fab0ea5"
  14. androidPluginVersion = '8.7.2'
  15. androidxMediaVersion = '1.4.1'
  16. androidxTestVersion = "1.6.1"
  17. appCompatVersion = '1.7.0'
  18. checkerVersion = "3.21.2"
  19. daggerVersion = "2.52"
  20. documentScannerVersion = "1.1.1"
  21. espressoVersion = "3.6.1"
  22. jacoco_version = '0.8.12'
  23. kotlin_version = '2.0.21'
  24. markwonVersion = "4.6.2"
  25. mockitoVersion = "4.11.0"
  26. mockitoKotlinVersion = "4.1.0"
  27. mockkVersion = "1.13.13"
  28. prismVersion = "2.0.0"
  29. roomVersion = "2.6.1"
  30. workRuntime = "2.9.1"
  31. ciBuild = System.getenv("CI") == "true"
  32. shotTest = System.getenv("SHOT_TEST") == "true"
  33. }
  34. }
  35. subprojects {
  36. buildscript {
  37. repositories {
  38. gradlePluginPortal()
  39. google()
  40. mavenCentral()
  41. }
  42. }
  43. repositories {
  44. google()
  45. mavenCentral()
  46. maven { url "https://jitpack.io" }
  47. }
  48. }
  49. tasks.register('clean', Delete) {
  50. delete rootProject.buildDir
  51. }
  52. tasks.register('installGitHooks', Copy) {
  53. def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
  54. def destFolder = "${rootProject.projectDir}/.git/hooks"
  55. description = "Install git hooks"
  56. from(sourceFolder) {
  57. include '*'
  58. }
  59. into destFolder
  60. eachFile { file ->
  61. println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
  62. }
  63. }