build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. buildscript {
  2. ext.kotlin_version = '1.6.10'
  3. repositories {
  4. google()
  5. mavenCentral()
  6. maven { url 'https://repo1.maven.org/maven2/' }
  7. maven {
  8. url "http://mvn.gt.getui.com/nexus/content/repositories/releases/"
  9. }
  10. maven { url 'https://maven.aliyun.com/repository/google' }
  11. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  12. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  13. flatDir {
  14. dirs 'libs'
  15. }
  16. }
  17. dependencies {
  18. classpath 'com.android.tools.build:gradle:4.1.0'
  19. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  20. }
  21. }
  22. allprojects {
  23. repositories {
  24. google()
  25. mavenCentral()
  26. maven { url 'https://repo1.maven.org/maven2/' }
  27. maven {
  28. url "http://mvn.gt.getui.com/nexus/content/repositories/releases/"
  29. }
  30. maven { url 'https://maven.aliyun.com/repository/google' }
  31. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  32. maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
  33. flatDir {
  34. dirs 'libs'
  35. }
  36. }
  37. }
  38. rootProject.buildDir = '../build'
  39. subprojects {
  40. project.buildDir = "${rootProject.buildDir}/${project.name}"
  41. }
  42. subprojects {
  43. project.evaluationDependsOn(':app')
  44. }
  45. task clean(type: Delete) {
  46. delete rootProject.buildDir
  47. }