build.gradle 742 B

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. // 内部maven上传
  5. apply from: file("../maven.gradle")
  6. android {
  7. compileSdkVersion 28
  8. defaultConfig {
  9. minSdkVersion 16
  10. targetSdkVersion 28
  11. versionCode 1
  12. versionName "1.0"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version") {
  23. exclude module: 'annotations'
  24. }
  25. }
  26. // jcenter 上传(这个要在底部)
  27. // apply from: file("publish.gradle")