build.gradle 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'maven'
  3. android {
  4. compileSdkVersion 28
  5. defaultConfig {
  6. minSdkVersion 14
  7. //noinspection OldTargetApi
  8. targetSdkVersion 28
  9. versionCode 367
  10. versionName "3.6.7"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. android {
  20. lintOptions {
  21. abortOnError false
  22. }
  23. }
  24. task intoJar(type: Copy) {
  25. delete 'build/libs/CalendarView.jar'
  26. from('build/intermediates/bundles/release/')
  27. into('build/libs/')
  28. include('classes.jar')
  29. rename ('classes.jar', 'CalendarView.jar')
  30. }
  31. intoJar.dependsOn(build)
  32. }
  33. uploadArchives {
  34. repositories{
  35. mavenDeployer {
  36. repository(url:"https://repo.rdc.aliyun.com/repository/84521-release-D7jNC2/") {
  37. authentication(userName:"icYZUR", password:"Xgk5Pc7PcV")
  38. }
  39. pom.version="1.0.0"
  40. pom.artifactId="calendarview" // 对应 appcompat-v7
  41. pom.groupId="com.airsmart.github.lib" // com.android.support
  42. }
  43. }
  44. }
  45. dependencies {
  46. implementation fileTree(dir: 'libs', include: ['*.jar'])
  47. androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
  48. exclude group: 'com.android.support', module: 'support-annotations'
  49. })
  50. //noinspection GradleDependency
  51. //implementation 'androidx.appcompat:appcompat:1.0.0'
  52. //noinspection GradleDependency
  53. //implementation 'androidx.recyclerview:recyclerview:1.0.0'
  54. implementation "com.android.support:recyclerview-v7:28.0.0"
  55. implementation 'com.android.support:appcompat-v7:28.0.0'
  56. testImplementation 'junit:junit:4.12'
  57. }
  58. //apply from: '../script/gradle-jcenter-push.gradle'