build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. kotlinVersion = '2.1.0'
  5. hilt_version = '2.44'
  6. }
  7. repositories {
  8. google()
  9. gradlePluginPortal()
  10. mavenCentral()
  11. }
  12. dependencies {
  13. classpath 'com.android.tools.build:gradle:8.7.2'
  14. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
  15. classpath "org.jetbrains.kotlin:kotlin-serialization:${kotlinVersion}"
  16. classpath 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.26'
  17. classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.7"
  18. classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.2"
  19. classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
  20. // NOTE: Do not place your application dependencies here; they belong
  21. // in the individual module build.gradle files
  22. }
  23. }
  24. configurations.configureEach {
  25. exclude group: 'org.jetbrains', module: 'annotations-java5' // via prism4j, already using annotations explicitly
  26. // check for updates every build
  27. resolutionStrategy.cacheChangingModulesFor 3600, 'seconds'
  28. }
  29. allprojects {
  30. repositories {
  31. google()
  32. mavenCentral()
  33. maven { url 'https://jitpack.io' }
  34. }
  35. }
  36. tasks.register('clean', Delete) {
  37. delete rootProject.buildDir
  38. }