11apply plugin : ' com.android.library'
2+ apply plugin : ' com.github.dcendents.android-maven'
3+ apply plugin : ' com.jfrog.bintray'
4+ version = " 1.0.3"
25
36android {
47 compileSdkVersion 21
@@ -8,7 +11,7 @@ android {
811 minSdkVersion 9
912 targetSdkVersion 21
1013 versionCode 1
11- versionName " 1.0.1 "
14+ versionName " 1.0.3 "
1215 }
1316 buildTypes {
1417 release {
@@ -18,24 +21,91 @@ android {
1821 }
1922}
2023
21- buildscript {
22- repositories {
23- jcenter()
24- }
25- dependencies {
26- classpath ' com.novoda:bintray-release:0.2.10'
27- }
28- }
29- apply plugin : ' bintray-release'
24+
3025dependencies {
3126 compile fileTree(dir : ' libs' , include : [' *.jar' ])
3227 compile ' com.nineoldandroids:library:2.4.0'
3328}
3429
35- publish {
36- groupId = ' com.mingle.zzz40500'
37- artifactId = ' shapeLoadingView'
38- publishVersion = ' 1.0.1'
39- description= ' Loading view with pretty animation.'
40- website = ' https://github.com/zzz40500/android-shapeLoadingView'
30+ // publish {
31+ // groupId = 'com.mingle.zzz40500'
32+ // artifactId = 'shapeLoadingView'
33+ // publishVersion = '1.0.3'
34+ // description='Loading view with pretty animation.'
35+ // website = 'https://github.com/zzz40500/android-shapeLoadingView'
36+ // }
37+
38+ def siteUrl = ' https://github.com/zzz40500/android-shapeLoadingView'
39+ def gitUrl = ' https://github.com/zzz40500/android-shapeLoadingView.git'
40+
41+ group = " com.mingle.zzz40500"
42+
43+ install {
44+ repositories. mavenInstaller {
45+ // This generates POM.xml with proper parameters
46+ pom {
47+ project {
48+ packaging ' aar'
49+ name ' ShapeLoadingView'
50+ url siteUrl
51+ licenses {
52+ license {
53+ name ' The Apache Software License, Version 2.0'
54+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
55+ }
56+ }
57+ developers {
58+ developer {
59+ id ' zzz40500'
60+ name ' qingwei'
61+ email ' wyh405003836@126.com'
62+ }
63+ }
64+ scm {
65+ connection gitUrl
66+ developerConnection gitUrl
67+ url siteUrl
68+ }
69+ }
70+ }
71+ }
72+ }
73+
74+
75+
76+ task sourcesJar (type : Jar ) {
77+ from android. sourceSets. main. java. srcDirs
78+ classifier = ' sources'
79+ }
80+
81+ task javadoc (type : Javadoc ) {
82+ source = android. sourceSets. main. java. srcDirs
83+ classpath + = project. files( android. getBootClasspath(). join(File . pathSeparator))
84+ }
85+
86+ task javadocJar (type : Jar , dependsOn : javadoc) {
87+ classifier = ' javadoc'
88+ from javadoc. destinationDir
89+ }
90+
91+ artifacts {
92+ archives javadocJar
93+ archives sourcesJar
94+ }
95+
96+ Properties properties = new Properties ()
97+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
98+ bintray {
99+ user = properties. getProperty(" bintray.user" )
100+ key = properties. getProperty(" bintray.apikey" )
101+ configurations = [' archives' ]
102+ pkg {
103+ repo = " maven"
104+ name = " ShapeLoadingView"
105+ // #CONFIG# project name in jcenter
106+ websiteUrl = siteUrl
107+ vcsUrl = gitUrl
108+ licenses = [" Apache-2.0" ]
109+ publish = true
110+ }
41111}
0 commit comments