From 88d8157fe8c0351cc86461b3479c60db670ffbfe Mon Sep 17 00:00:00 2001 From: nicolas Date: Thu, 16 May 2019 11:11:07 +0200 Subject: [PATCH] conf: update to deploy with jitpack --- LeonidsLib/build.gradle | 112 +----------------- .../plattysoft/leonids/ParticleSystem.java | 1 - build.gradle | 2 +- 3 files changed, 3 insertions(+), 112 deletions(-) diff --git a/LeonidsLib/build.gradle b/LeonidsLib/build.gradle index db83fdf..39f7a1b 100644 --- a/LeonidsLib/build.gradle +++ b/LeonidsLib/build.gradle @@ -1,9 +1,7 @@ apply plugin: 'com.android.library' apply plugin: 'com.github.dcendents.android-maven' -apply plugin: 'com.jfrog.bintray' -apply plugin: 'maven-publish' -def versionName = '1.3.7' +def versionName = '1.3.8' android { compileSdkVersion 28 @@ -16,111 +14,5 @@ android { } -def siteUrl = 'http://plattysoft.github.io/Leonids/' -def gitUrl = 'https://github.com/plattysoft/Leonids.git' group = "com.recisio.leonids" -version = versionName - - -publishing { - publications { - bar(MavenPublication) { - groupId group - artifactId 'Leonids' - version versionName - artifact("$buildDir/outputs/aar/LeonidsLib-release.aar") - } - } - repositories { - maven { - url "$buildDir/repo" - } - } -} - -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 = "Leonids" - websiteUrl = siteUrl - vcsUrl = gitUrl - licenses = ["Apache-2.0"] - dryRun = true - publish = false - version { - name = versionName //Bintray logical version name -// released = //Optional - Date of the version release. 2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance - vcsTag = versionName - } - } -} - - -install { - repositories.mavenInstaller { - // This generates POM.xml with proper parameters - pom { - project { - packaging 'aar' - artifactId 'LeonidsLib' - version = versionName - // Add your description here - name 'Leonids' - description = 'A Particle System Library for standard Android UI.' - url siteUrl - - // Set your license - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - developers { - developer { - id 'plattysoft' - name 'Platty Soft' - email 'raul@plattysoft.com' - } - } - scm { - connection gitUrl - developerConnection gitUrl - url siteUrl - } - } - } - } -} - -task sourcesJar(type: Jar) { - from android.sourceSets.main.java.srcDirs - classifier = 'sources' -} - -task classesJar(type: Jar) { - //from android.sourceSets.main.java - from 'build/intermediates/classes/release/' - archiveName "LeonidsLib-${versionName}.jar" -} - -task generateJavadoc(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs - ext.cp = android.libraryVariants.collect { variant -> - variant.javaCompile.classpath.files - } - classpath = files(ext.cp) -} - -artifacts { - archives sourcesJar - archives classesJar -} - +version = versionName \ No newline at end of file diff --git a/LeonidsLib/src/main/java/com/plattysoft/leonids/ParticleSystem.java b/LeonidsLib/src/main/java/com/plattysoft/leonids/ParticleSystem.java index 3f6f551..2dc0fe4 100644 --- a/LeonidsLib/src/main/java/com/plattysoft/leonids/ParticleSystem.java +++ b/LeonidsLib/src/main/java/com/plattysoft/leonids/ParticleSystem.java @@ -7,7 +7,6 @@ import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Canvas; -import android.graphics.Rect; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; diff --git a/build.gradle b/build.gradle index c79d91f..cd6f774 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.4.1' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1' - classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' } }