build.gradle 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Nextcloud - Android Client
  3. *
  4. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2024 Alper Ozturk <alper_ozturk@proton.me>
  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
  10. */
  11. buildscript {
  12. ext {
  13. androidLibraryVersion ="0c886d61f6"
  14. androidPluginVersion = '8.3.2'
  15. androidxMediaVersion = '1.3.1'
  16. androidxTestVersion = "1.5.0"
  17. appCompatVersion = '1.6.1'
  18. checkerVersion = "3.21.2"
  19. daggerVersion = "2.51.1"
  20. documentScannerVersion = "1.1.1"
  21. espressoVersion = "3.5.1"
  22. fidoVersion = "4.1.0-patch2"
  23. jacoco_version = '0.8.12'
  24. kotlin_version = '1.9.23'
  25. markwonVersion = "4.6.2"
  26. mockitoVersion = "4.11.0"
  27. mockitoKotlinVersion = "4.1.0"
  28. mockkVersion = "1.13.10"
  29. prismVersion = "2.0.0"
  30. roomVersion = "2.6.1"
  31. workRuntime = "2.9.0"
  32. ciBuild = System.getenv("CI") == "true"
  33. shotTest = System.getenv("SHOT_TEST") == "true"
  34. }
  35. }
  36. subprojects {
  37. buildscript {
  38. repositories {
  39. gradlePluginPortal()
  40. google()
  41. mavenCentral()
  42. }
  43. }
  44. repositories {
  45. google()
  46. mavenCentral()
  47. maven { url "https://jitpack.io" }
  48. }
  49. }
  50. tasks.register('clean', Delete) {
  51. delete rootProject.buildDir
  52. }
  53. tasks.register('installGitHooks', Copy) {
  54. def sourceFolder = "${rootProject.projectDir}/scripts/hooks"
  55. def destFolder = "${rootProject.projectDir}/.git/hooks"
  56. description = "Install git hooks"
  57. from(sourceFolder) {
  58. include '*'
  59. }
  60. into destFolder
  61. eachFile { file ->
  62. println "${sourceFolder}/${file.relativeSourcePath} -> ${destFolder}/${file.path}"
  63. }
  64. }