diff --git a/shapeloading/build.gradle b/shapeloading/build.gradle index b3d2967..0086ed7 100644 --- a/shapeloading/build.gradle +++ b/shapeloading/build.gradle @@ -1,7 +1,4 @@ apply plugin: 'com.android.library' -apply plugin: 'com.github.dcendents.android-maven' -apply plugin: 'com.jfrog.bintray' -version = "1.0.3" android { compileSdkVersion 21 @@ -27,85 +24,3 @@ dependencies { compile 'com.nineoldandroids:library:2.4.0' } -//publish { -// groupId = 'com.mingle.zzz40500' -// artifactId = 'shapeLoadingView' -// publishVersion = '1.0.3' -// description='Loading view with pretty animation.' -// website = 'https://github.com/zzz40500/android-shapeLoadingView' -//} - -def siteUrl = 'https://github.com/zzz40500/android-shapeLoadingView' -def gitUrl = 'https://github.com/zzz40500/android-shapeLoadingView.git' - -group = "com.mingle.zzz40500" - -install { - repositories.mavenInstaller { - // This generates POM.xml with proper parameters - pom { - project { - packaging 'aar' - name 'ShapeLoadingView' - url siteUrl - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - developers { - developer { - id 'zzz40500' - name 'qingwei' - email 'wyh405003836@126.com' - } - } - scm { - connection gitUrl - developerConnection gitUrl - url siteUrl - } - } - } - } -} - - - -task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' -} - -task javadoc(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs - classpath += project.files( android.getBootClasspath().join(File.pathSeparator)) -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -Properties properties = new Properties() -properties.load(project.rootProject.file('local.properties').newDataInputStream()) -bintray { - user = properties.getProperty("bintray.user") - key = properties.getProperty("bintray.apikey") - configurations = ['archives'] - pkg { - repo = "maven" - name = "ShapeLoadingView" - // #CONFIG# project name in jcenter - websiteUrl = siteUrl - vcsUrl = gitUrl - licenses = ["Apache-2.0"] - publish = true - } -} \ No newline at end of file