apply plugin: 'com.android.library' apply plugin: 'maven' android { compileSdkVersion 28 defaultConfig { minSdkVersion 14 //noinspection OldTargetApi targetSdkVersion 28 versionCode 367 versionName "3.6.7" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } android { lintOptions { abortOnError false } } task intoJar(type: Copy) { delete 'build/libs/CalendarView.jar' from('build/intermediates/bundles/release/') into('build/libs/') include('classes.jar') rename ('classes.jar', 'CalendarView.jar') } intoJar.dependsOn(build) } uploadArchives { repositories{ mavenDeployer { repository(url:"https://repo.rdc.aliyun.com/repository/84521-release-D7jNC2/") { authentication(userName:"icYZUR", password:"Xgk5Pc7PcV") } pom.version="1.0.0" pom.artifactId="calendarview" // 对应 appcompat-v7 pom.groupId="com.airsmart.github.lib" // com.android.support } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { exclude group: 'com.android.support', module: 'support-annotations' }) //noinspection GradleDependency //implementation 'androidx.appcompat:appcompat:1.0.0' //noinspection GradleDependency //implementation 'androidx.recyclerview:recyclerview:1.0.0' implementation "com.android.support:recyclerview-v7:28.0.0" implementation 'com.android.support:appcompat-v7:28.0.0' testImplementation 'junit:junit:4.12' } //apply from: '../script/gradle-jcenter-push.gradle'