1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
+ apply plugin : ' com.github.dcendents.android-maven'
4
+ apply plugin : " com.jfrog.bintray"
5
+
6
+ def projectVersion = " 0.1"
7
+ def projectGroupId = " com.github.madrapps"
8
+ def siteUrl = ' https://github.com/Madrapps/Bubbles'
9
+ def gitUrl = ' https://github.com/Madrapps/Bubbles.git'
10
+ def fullName = " com.github.madrapps:bubbles"
11
+
12
+ version = projectVersion
13
+ group = projectGroupId
3
14
4
15
android {
5
16
compileSdkVersion 26
@@ -10,7 +21,7 @@ android {
10
21
minSdkVersion 14
11
22
targetSdkVersion 26
12
23
versionCode 1
13
- versionName " 1.0 "
24
+ versionName version
14
25
15
26
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
16
27
@@ -35,6 +46,85 @@ dependencies {
35
46
compile " org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version "
36
47
37
48
}
49
+
38
50
repositories {
39
51
mavenCentral()
52
+ google()
53
+ }
54
+
55
+ install {
56
+ repositories. mavenInstaller {
57
+ pom {
58
+ project {
59
+ packaging ' aar'
60
+
61
+ groupId projectGroupId
62
+
63
+ name fullName
64
+ description = ' An animated action menu that could hold any views (especially FloatingActionButton). The animation and the layout of the menu can be customized. This is an android library.'
65
+ url siteUrl
66
+
67
+ licenses {
68
+ license {
69
+ name ' The Apache Software License, Version 2.0'
70
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
71
+ }
72
+ }
73
+ developers {
74
+ developer {
75
+ id ' instrap'
76
+ name ' Madrapps'
77
+ email ' madrasappfactory@gmail.com'
78
+ }
79
+ }
80
+ scm {
81
+ connection gitUrl
82
+ developerConnection gitUrl
83
+ url siteUrl
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ task sourcesJar (type : Jar ) {
91
+ from android. sourceSets. main. java. srcDirs
92
+ classifier = ' sources'
93
+ }
94
+
95
+ task javadoc (type : Javadoc ) {
96
+ excludes = [' **/*.kt' ] // < ---- Exclude all kotlin files from javadoc file.
97
+ source = android. sourceSets. main. java. srcDirs
98
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
40
99
}
100
+
101
+ task javadocJar (type : Jar , dependsOn : javadoc) {
102
+ classifier = ' javadoc'
103
+ from javadoc. destinationDir
104
+ }
105
+
106
+ artifacts {
107
+ archives javadocJar
108
+ archives sourcesJar
109
+ }
110
+
111
+ bintray {
112
+ user = System . getenv(' bintray_user' )
113
+ key = System . getenv(' bintray_apikey' )
114
+
115
+ configurations = [' archives' ]
116
+ pkg {
117
+ repo = " maven"
118
+ name = fullName
119
+ userOrg = " madrapps"
120
+ websiteUrl = siteUrl
121
+ vcsUrl = gitUrl
122
+ licenses = [" Apache-2.0" ]
123
+ publish = true
124
+ version {
125
+ gpg {
126
+ sign = true
127
+ }
128
+ }
129
+ }
130
+ }
0 commit comments