build.gradle 855 B

12345678910111213141516171819202122232425262728293031323334
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. }
  7. apply from: 'config/config.gradle'
  8. ext {
  9. env.kotlin_version = '1.4.21'
  10. }
  11. dependencies {
  12. classpath "com.android.tools.build:gradle:4.1.2"
  13. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${env.kotlin_version}"
  14. // NOTE: Do not place your application dependencies here; they belong
  15. // in the individual module build.gradle files
  16. }
  17. }
  18. allprojects {
  19. repositories {
  20. google()
  21. jcenter()
  22. maven { url 'https://jitpack.io' }
  23. }
  24. apply plugin: 'idea'
  25. buildDir = new File(rootDir, "gradle-build/${path.replaceAll(':', '/')}")
  26. }
  27. task clean(type: Delete) {
  28. delete rootProject.buildDir
  29. }