build.gradle 895 B

1234567891011121314151617181920212223242526272829303132333435
  1. buildscript {
  2. repositories {
  3. google()
  4. maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  5. }
  6. dependencies {
  7. classpath 'com.android.tools.build:gradle:4.2.1'
  8. }
  9. }
  10. allprojects {
  11. repositories {
  12. flatDir {
  13. dirs 'libs'
  14. }
  15. google()
  16. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  17. maven { url "https://jitpack.io" }
  18. }
  19. }
  20. allprojects {
  21. repositories {
  22. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  23. maven { url 'https://maven.aliyun.com/repository/google' }
  24. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  25. maven { url 'https://maven.aliyun.com/repository/jcenter'}
  26. }
  27. }
  28. task clean(type: Delete) {
  29. delete rootProject.buildDir
  30. }
  31. tasks.withType(JavaCompile) {
  32. options.encoding = "UTF-8"
  33. }