11apply plugin : ' com.android.library'
2- apply plugin : ' com.novoda.bintray-release '
2+ apply plugin : ' kotlin-android '
33
4- android {
5- compileSdkVersion 28
4+ ext {
5+ PUBLISH_GROUP_ID = ' io.github.nikartm'
6+ PUBLISH_VERSION = ' 3.0.0'
7+ PUBLISH_ARTIFACT_ID = ' process-button'
8+ PUBLISH_DESCRIPTION = ' Android library. Animated striped button to show loading process.'
9+ PUBLISH_URL = ' https://github.com/nikartm/StripedProcessButton'
10+ PUBLISH_LICENSE_NAME = ' The Apache Software License, Version 2.0'
11+ PUBLISH_LICENSE_URL = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
12+ PUBLISH_DEVELOPER_ID = ' ivanv'
13+ PUBLISH_DEVELOPER_NAME = ' Ivan Vodyasov'
14+ PUBLISH_DEVELOPER_EMAIL = ' jvissun@gmail.com'
15+ PUBLISH_SCM_CONNECTION = ' scm:git:github.com/nikartm/StripedProcessButton.git'
16+ PUBLISH_SCM_DEVELOPER_CONNECTION = ' scm:git:ssh://github.com/nikartm/StripedProcessButton.git'
17+ PUBLISH_SCM_URL = ' https://github.com/nikartm/StripedProcessButton/tree/master'
18+ }
19+
20+ apply from : " ${ rootProject.projectDir} /scripts/publish-module.gradle"
621
22+ android {
23+ compileSdkVersion rootProject. ext. compileSdkVersion
724 defaultConfig {
8- minSdkVersion 21
9- targetSdkVersion 28
10- versionCode 1
11- versionName " 2.0.0"
25+ minSdkVersion rootProject. ext. minSdkVersion
26+ targetSdkVersion rootProject. ext. targetSdkVersion
1227 }
1328
1429 buildTypes {
@@ -17,32 +32,20 @@ android {
1732 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
1833 }
1934 }
20- }
2135
22- allprojects {
23- tasks. withType(Javadoc ). all { enabled = false }
24- }
25- if (JavaVersion . current(). isJava8Compatible()) {
26- allprojects {
27- tasks. withType(Javadoc ) {
28- options. addStringOption(' Xdoclint:none' , ' -quiet' )
29- }
36+ kotlinOptions {
37+ jvmTarget = rootProject. ext. javaVersion
3038 }
31- }
3239
33- publish {
34- userOrg = ' nikart'
35- groupId = ' com.github.nikartm'
36- artifactId = ' process-button'
37- publishVersion = android. defaultConfig. versionName
38- desc = ' Android library. Animated striped button to show loading process.'
39- licences = [' Apache-2.0' ]
40- uploadName= ' StripedProcessButton'
41- website = ' https://github.com/nikartm/StripedProcessButton'
40+ compileOptions {
41+ targetCompatibility rootProject. ext. javaVersion
42+ sourceCompatibility rootProject. ext. javaVersion
43+ }
4244}
4345
4446dependencies {
4547 implementation fileTree(dir : ' libs' , include : [' *.jar' ])
46- implementation ' androidx.appcompat:appcompat:1.0.2'
47- testImplementation ' junit:junit:4.12'
48+ testImplementation ' junit:junit:4.13.2'
49+ implementation ' androidx.appcompat:appcompat:1.5.1'
50+ implementation rootProject. ext. dependencies. coreKtx
4851}
0 commit comments