build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'com.novoda.bintray-release'//添加JCenter插件
  3. android {
  4. compileSdkVersion 26
  5. defaultConfig {
  6. minSdkVersion 14
  7. targetSdkVersion 26
  8. versionCode 34
  9. versionName "4.1.9"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. lintOptions {
  18. abortOnError false
  19. }
  20. }
  21. //allprojects {
  22. // tasks.withType(Javadoc) {//兼容中文字符
  23. // options{
  24. // encoding "UTF-8"
  25. // charSet 'UTF-8'
  26. // links "http://docs.oracle.com/javase/7/docs/api"
  27. // }
  28. // }
  29. //}
  30. //publish {
  31. // userOrg = 'contrarywind'//bintray.com 用户名/组织名 user/org name
  32. // groupId = 'com.contrarywind'//JCenter上显示的路径 path
  33. // artifactId = 'Android-PickerView'//项目名称 project name
  34. // publishVersion = '4.1.9'//版本号 version code
  35. // desc = 'this is a pickerview for android'//项目描述 description
  36. // website = 'https://github.com/Bigkoo/Android-PickerView' //项目网址链接 link
  37. //}
  38. dependencies {
  39. // compile fileTree(include: ['*.jar'], dir: 'libs')
  40. api project(path: ':wheelview')
  41. // api 'com.contrarywind:wheelview:4.1.0'
  42. implementation 'androidx.annotation:annotation:1.0.0'
  43. }