build.gradle 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. buildscript {
  2. ext.kotlin_version = '1.5.0'
  3. repositories {
  4. google()
  5. maven{url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  6. }
  7. dependencies {
  8. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  9. classpath 'com.android.tools.build:gradle:4.2.1'
  10. }
  11. }
  12. allprojects {
  13. repositories {
  14. flatDir {
  15. dirs 'libs'
  16. }
  17. google()
  18. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  19. maven { url "https://jitpack.io" }
  20. }
  21. }
  22. allprojects {
  23. repositories {
  24. maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
  25. maven { url 'https://maven.aliyun.com/repository/google' }
  26. maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
  27. maven { url 'https://maven.aliyun.com/repository/jcenter'}
  28. // maven { url 'http://47.93.180.222:8081/repository/mobile-releases/' }//德卡读卡器仓库
  29. }
  30. }
  31. task clean(type: Delete) {
  32. delete rootProject.buildDir
  33. }
  34. tasks.withType(JavaCompile) {
  35. options.encoding = "UTF-8"
  36. }