1
1
apply plugin : ' com.android.library'
2
- apply plugin : ' com.github.dcendents.android-maven'
3
- apply plugin : " com.jfrog.bintray"
4
-
5
- version = " 2.1"
6
2
7
3
android {
8
- compileSdkVersion 29
4
+ compileSdkVersion 30
9
5
10
6
defaultConfig {
11
7
minSdkVersion 19
12
- targetSdkVersion 29
13
- versionCode 1
14
- versionName version
8
+ targetSdkVersion 30
9
+ versionCode 2
10
+ versionName VERSION_NAME
15
11
16
12
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
17
13
@@ -28,135 +24,19 @@ android {
28
24
29
25
dependencies {
30
26
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
31
- implementation ' androidx.appcompat:appcompat:1.1 .0'
32
- implementation ' androidx.constraintlayout:constraintlayout:1.1.3 '
27
+ implementation ' androidx.appcompat:appcompat:1.2 .0'
28
+ implementation ' androidx.constraintlayout:constraintlayout:2.0.4 '
33
29
implementation ' androidx.annotation:annotation:1.1.0'
34
30
35
31
// Material Design Library
36
- implementation ' com.google.android.material:material:1.0 .0'
32
+ implementation ' com.google.android.material:material:1.3 .0'
37
33
38
34
// Lottie Animation Library
39
- implementation ' com.airbnb.android:lottie:3.3 .0'
35
+ implementation ' com.airbnb.android:lottie:3.6 .0'
40
36
41
37
testImplementation ' junit:junit:4.12'
42
38
androidTestImplementation ' androidx.test:runner:1.2.0'
43
39
androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
44
40
}
45
- ext {
46
- bintrayRepo = ' maven'
47
- bintrayName = ' MaterialDialog'
48
-
49
- publishedGroupId = ' com.shreyaspatil'
50
- libraryName = ' MaterialDialog'
51
- artifact = ' MaterialDialog'
52
- libraryDescription = ' Android Library to implement animated, beautiful, stylish Material Dialog in android apps easily.'
53
-
54
-
55
- // Your github repo link
56
- siteUrl = ' https://github.com/patilshreyas/MaterialDialog-Android'
57
- gitUrl = ' https://github.com/patilshreyas/MaterialDialog-Android.git'
58
- githubRepository= ' patilshreyas/MaterialDialog'
59
-
60
- libraryVersion = version
61
-
62
- developerId = ' patilshreyas'
63
- developerName = ' Shreyas Patil'
64
- developerEmail = ' shreyaspatilg@gmail.com'
65
-
66
- licenseName = ' The Apache Software License, Version 2.0'
67
- licenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
68
- allLicenses = [" Apache-2.0" ]
69
- }
70
-
71
- group = publishedGroupId
72
- def siteUrl = ' https://github.com/PatilShreyas/MaterialDialog-Android' // Homepage URL of the library
73
- def gitUrl = ' https://github.com/PatilShreyas/MaterialDialog-Android.git' // Git repository URL // Maven Group ID for the artifact
74
-
75
- install {
76
- repositories. mavenInstaller {
77
- // This generates POM.xml with proper parameters
78
- pom {
79
- project {
80
- packaging ' aar'
81
-
82
- // Add your description here
83
- groupId ' com.shreyaspatil'
84
- artifactId = ' MaterialDialog'
85
- name ' MaterialDialog'
86
- description = ' Android Library to implement animated, beautiful, stylish Material Dialog in android apps easily.'
87
- url siteUrl
88
-
89
- // Set your license
90
- licenses {
91
- license {
92
- name ' The Apache Software License, Version 2.0'
93
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
94
- }
95
- }
96
- developers {
97
- developer {
98
- id ' PatilShreyas' // TODO
99
- name ' Shreyas Patil' // TODO
100
- email ' shreyaspatilg@gmail.com' // TODO
101
- }
102
- }
103
- scm {
104
- connection gitUrl
105
- developerConnection gitUrl
106
- url siteUrl
107
- }
108
- }
109
- }
110
- }
111
- }
112
-
113
- task sourcesJar (type : Jar ) {
114
- from android. sourceSets. main. java. srcDirs
115
- classifier = ' sources'
116
- }
117
-
118
- task javadoc (type : Javadoc ) {
119
- source = android. sourceSets. main. java. srcDirs
120
- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
121
- options. addStringOption(' Xdoclint:none' , ' -quiet' )
122
- options. addStringOption(' encoding' , ' UTF-8' )
123
- options. addStringOption(' charSet' , ' UTF-8' )
124
- }
125
-
126
- task javadocJar (type : Jar , dependsOn : javadoc) {
127
- classifier = ' javadoc'
128
- from javadoc. destinationDir
129
- }
130
- artifacts {
131
- archives javadocJar
132
- archives sourcesJar
133
- }
134
-
135
- Properties properties = new Properties ()
136
- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
137
41
138
- // https://github.com/bintray/gradle-bintray-plugin
139
- bintray {
140
- user = properties. getProperty(" bintray.user" )
141
- key = properties. getProperty(" bintray.apikey" )
142
-
143
- configurations = [' archives' ]
144
- pkg {
145
- repo = " maven"
146
- // it is the name that appears in bintray when logged
147
- name = " com.shreyaspatil:MaterialDialog" // TODO
148
- websiteUrl = siteUrl
149
- vcsUrl = gitUrl
150
- licenses = [" Apache-2.0" ]
151
- publish = true
152
- version {
153
- gpg {
154
- sign = true // Determines whether to GPG sign the files. The default is false
155
- passphrase = properties. getProperty(" bintray.gpg.password" ) // Optional. The passphrase for GPG signing'
156
- }
157
- }
158
- }
159
- }
160
- apply plugin : ' com.android.library'
161
- apply plugin : ' com.github.dcendents.android-maven'
162
- apply plugin : ' com.jfrog.bintray'
42
+ apply plugin : ' com.vanniktech.maven.publish'
0 commit comments