From 6aeb86a70e143f2160b036dcfe2615e682c6d495 Mon Sep 17 00:00:00 2001 From: Martin Ndegwa Date: Tue, 27 Mar 2018 19:09:12 +0300 Subject: [PATCH] update gradle properties to new release version 1.2.2, update gradle config to support automated closing and promotion of published aar artifacts --- build.gradle | 11 +++++++++++ gradle.properties | 2 +- maven.gradle | 5 +++++ sample/build.gradle | 4 ++-- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 56cb9fb8..269cf53c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,13 @@ +buildscript { + repositories { + mavenCentral() + } + + dependencies { + classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0" + } +} + configure(allprojects) { project -> buildscript { @@ -60,6 +70,7 @@ subprojects { apply plugin: 'java' apply plugin: 'build-dashboard' +apply plugin: 'io.codearte.nexus-staging' buildDashboard { reports.html.destination = "build/" diff --git a/gradle.properties b/gradle.properties index 1810d31e..6dfe9571 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=1.2.5-SNAPSHOT +VERSION_NAME=1.2.2 VERSION_CODE=2 GROUP=org.smartregister POM_SETTING_DESCRIPTION=OpenSRP Client Immunization diff --git a/maven.gradle b/maven.gradle index dd5ae9ff..a876c64f 100644 --- a/maven.gradle +++ b/maven.gradle @@ -126,4 +126,9 @@ afterEvaluate { project -> archives androidSourcesJar archives androidJavadocsJar } + + nexusStaging { + username getRepositoryUsername() + password getRepositoryPassword() + } } diff --git a/sample/build.gradle b/sample/build.gradle index e1e85dd2..a4447436 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -71,11 +71,11 @@ android { dependencies { testCompile 'junit:junit:4.12' - compile('org.smartregister:opensrp-client-core:1.2.5-SNAPSHOT@aar') { + compile('org.smartregister:opensrp-client-core:1.2.1@aar') { transitive = true exclude group: 'com.github.bmelnychuk', module: 'atv' } - compile('org.smartregister:opensrp-client-native-form:1.0.0-SNAPSHOT@aar') { + compile('org.smartregister:opensrp-client-native-form:1.0.2@aar') { transitive = true exclude group: 'com.android.support', module: 'recyclerview-v7' }