From 42b0a74c0585600525a80b97214a138b8567925a Mon Sep 17 00:00:00 2001 From: fabianterhorst Date: Fri, 9 Jun 2017 14:35:17 +0200 Subject: [PATCH] minor update --- .../apiclient-accountmanager.iml | 18 ++--- apiclient/apiclient.iml | 3 +- build.gradle | 4 +- publish.gradle | 73 ++++++++++++++++++- 4 files changed, 81 insertions(+), 17 deletions(-) diff --git a/apiclient-accountmanager/apiclient-accountmanager.iml b/apiclient-accountmanager/apiclient-accountmanager.iml index 19d23bf..34c55db 100644 --- a/apiclient-accountmanager/apiclient-accountmanager.iml +++ b/apiclient-accountmanager/apiclient-accountmanager.iml @@ -9,7 +9,6 @@ @@ -65,14 +63,6 @@ - - - - - - - - @@ -81,6 +71,14 @@ + + + + + + + + diff --git a/apiclient/apiclient.iml b/apiclient/apiclient.iml index 5222a40..ca9abaa 100644 --- a/apiclient/apiclient.iml +++ b/apiclient/apiclient.iml @@ -9,7 +9,6 @@ @@ -97,6 +95,7 @@ + diff --git a/build.gradle b/build.gradle index 3cefbe8..4c05b18 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,8 @@ buildscript { classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'io.realm:realm-gradle-plugin:1.1.1' classpath 'me.tatarka:gradle-retrolambda:3.3.0-beta4' - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' - //classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' + classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1" + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' } } diff --git a/publish.gradle b/publish.gradle index f4e6960..9348c45 100644 --- a/publish.gradle +++ b/publish.gradle @@ -1,13 +1,80 @@ //apply plugin: 'com.github.dcendents.android-maven' +apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' +apply plugin: 'maven-publish' +apply plugin: 'com.jfrog.bintray' +apply plugin: 'maven' def siteUrl = 'https://github.com/FabianTerhorst/ApiClient' def gitUrl = 'https://github.com/FabianTerhorst/ApiClient.git' -version = "0.4" +version = "0.4.4" group = "io.fabianterhorst" -/*install { +/*task createPom << { + pom { + project { + groupId group + artifactId 'apiclient' + version version + + inceptionYear '2016' + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + } + }.writeTo("pom.xml") +} + +publishing { + publications { + maven(MavenPublication) { + from components.java + } + } +}*/ + + +/*task createPom << { + //repositories.mavenInstaller { + // This generates POM.xml with proper parameters + pom { + //noinspection GroovyAssignabilityCheck + project { + packaging 'aar' + + // Add your description here + name 'Fast and easy to use Api Client' + 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 'fabianterhorst' + name 'Fabian Terhorst' + email 'fabian.terhorst@gmail.com' + } + } + scm { + connection gitUrl + developerConnection gitUrl + url siteUrl + } + } + // } + }.writeTo("pom.xml") +}*/ +install { repositories.mavenInstaller { // This generates POM.xml with proper parameters pom { @@ -41,7 +108,7 @@ group = "io.fabianterhorst" } } } -}*/ +} task sourcesJar(type: Jar) {