build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext.kotlin_version = '1.5.30'
  4. repositories {
  5. google()
  6. jcenter()
  7. maven { url "https://jitpack.io" }
  8. maven { url 'http://maven.keleyanyi.com/repository/benyanyi/' }
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:4.1.3'
  12. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  13. // classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
  14. // classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
  15. // NOTE: Do not place your application dependencies here; they belong
  16. // in the individual module build.gradle files
  17. }
  18. }
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. maven { url "https://jitpack.io" }
  24. maven { url 'http://maven.keleyanyi.com/repository/benyanyi/' }
  25. //解决中文乱码问题
  26. tasks.withType(Javadoc) { //兼容中文
  27. options.addStringOption('Xdoclint:none', '-quiet')
  28. options.addStringOption('encoding', 'UTF-8')
  29. options {
  30. encoding "UTF-8"
  31. charSet 'UTF-8'
  32. links "http://docs.oracle.com/javase/7/docs/api"
  33. }
  34. }
  35. }
  36. }
  37. task clean(type: Delete) {
  38. delete rootProject.buildDir
  39. }