1
+ apply plugin : ' com.android.library'
2
+ apply plugin : ' com.github.dcendents.android-maven'
3
+ apply plugin : ' com.jfrog.bintray'
4
+
5
+ version = " 0.0.2"
6
+
7
+ ext {
8
+ bintrayRepo = ' maven'
9
+ bintrayName = ' ParticleTextView'
10
+
11
+ publishedGroupId = ' com.yasic.library'
12
+ libraryName = ' ParticleTextView'
13
+ artifact = ' particleTextView'
14
+
15
+ libraryDescription = ' '
16
+
17
+ siteUrl = ' https://github.com/Yasic/ParticleTextView'
18
+ gitUrl = ' https://github.com/Yasic/ParticleTextView.git'
19
+
20
+ libraryVersion = ' 0.0.1'
21
+
22
+ developerId = ' yasic'
23
+ developerName = ' yasic'
24
+ developerEmail
= ' [email protected] '
25
+
26
+ licenseName = ' The Apache Software License, Version 2.0'
27
+ licenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
28
+ allLicenses = [" Apache-2.0" ]
29
+ }
30
+
31
+ android {
32
+ compileSdkVersion 23
33
+ buildToolsVersion " 23.0.3"
34
+ resourcePrefix " yasic__"
35
+
36
+ defaultConfig {
37
+ minSdkVersion 15
38
+ targetSdkVersion 23
39
+ versionCode 1
40
+ versionName " 1.0"
41
+ }
42
+ buildTypes {
43
+ release {
44
+ minifyEnabled false
45
+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
46
+ }
47
+ }
48
+ }
49
+
50
+ dependencies {
51
+ compile fileTree(dir : ' libs' , include : [' *.jar' ])
52
+ testCompile ' junit:junit:4.12'
53
+ compile ' com.android.support:appcompat-v7:23.3.0'
54
+ compile ' io.reactivex:rxandroid:1.1.0'
55
+ }
56
+
57
+ group = " yasic.library.ParticleTextView"
58
+
59
+ install {
60
+ repositories. mavenInstaller {
61
+ // This generates POM.xml with proper parameters
62
+ pom {
63
+ project {
64
+ packaging ' aar' // Add your description here
65
+ name ' ParticleTextView'
66
+ description ' Android Customize View'
67
+ url siteUrl // Set your license
68
+ licenses {
69
+ license {
70
+ name ' The Apache Software License, Version 2.0'
71
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
72
+ }
73
+ }
74
+ developers {
75
+ developer {
76
+ id ' yasic'
77
+ name ' yasic'
78
+
79
+ }
80
+ }
81
+ scm {
82
+ connection gitUrl
83
+ developerConnection gitUrl
84
+ url siteUrl
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+
91
+ task sourcesJar (type : Jar ) {
92
+ from android. sourceSets. main. java. srcDirs
93
+ classifier = ' sources'
94
+ }
95
+ task javadoc (type : Javadoc ) {
96
+ source = android. sourceSets. main. java. srcDirs
97
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
98
+ }
99
+ task javadocJar (type : Jar , dependsOn : javadoc) {
100
+ classifier = ' javadoc'
101
+ from javadoc. destinationDir
102
+ }
103
+ artifacts {
104
+ archives javadocJar
105
+ archives sourcesJar
106
+ }
107
+
108
+ Properties properties = new Properties ()
109
+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
110
+ bintray {
111
+ user = properties. getProperty(" bintray.user" )
112
+ key = properties. getProperty(" bintray.apikey" )
113
+ configurations = [' archives' ]
114
+ pkg {
115
+ repo = " maven"
116
+ name = " ParticleTextView"
117
+ websiteUrl = siteUrl
118
+ vcsUrl = gitUrl
119
+ licenses = [" Apache-2.0" ]
120
+ publish = true
121
+ }
122
+ }
0 commit comments