| 123456789101112131415161718192021222324252627282930313233343536373839 |
- apply plugin: 'com.android.library'
- apply plugin: 'kotlin-android'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion 28
- defaultConfig {
- minSdkVersion 16
- targetSdkVersion 28
- versionCode 1
- versionName "1.0"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- }
- dependencies {
- implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version") {
- exclude module: 'annotations'
- }
- }
- // jcenter 上传(这个要在底部)
- // 上传需要执行此任务 IDE -> gradle-> Tasks/publishing/bintrayUpload
- // apply from: file("publish.gradle")
- // maven central
- // 上传指令./gradlew uploadArchives
- // https://s01.oss.sonatype.org/
- // Staging Repositories -> close -> release
- // apply from: "../publish-mavencentral.gradle"
|