11apply plugin : ' com.android.library'
2- apply plugin : ' com.github.dcendents.android-maven'
3- apply plugin : ' com.jfrog.bintray'
4- version = " 1.0.3"
52
63android {
74 compileSdkVersion 21
@@ -27,85 +24,3 @@ dependencies {
2724 compile ' com.nineoldandroids:library:2.4.0'
2825}
2926
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- }
111- }
0 commit comments