From 39c87f22c20867889a1c4b6f0790caf933fe47c6 Mon Sep 17 00:00:00 2001 From: zeropercenthappy Date: Mon, 8 Jan 2018 16:08:32 +0800 Subject: [PATCH] add sources jar --- README.md | 2 +- library/build.gradle | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a07bd87..1af2519 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency dependencies { - compile 'com.github.zeropercenthappy:ZPHRatingBar:1.0.1' + compile 'com.github.zeropercenthappy:ZPHRatingBar:1.0.3' } Sample: diff --git a/library/build.gradle b/library/build.gradle index a24ee1a..69a0170 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -5,13 +5,11 @@ group = 'com.github.zeropercenthappy' android { compileSdkVersion 26 - - defaultConfig { minSdkVersion 16 targetSdkVersion 26 - versionCode 3 - versionName "1.0.2" + versionCode 4 + versionName "1.0.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -23,7 +21,6 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } - } dependencies { @@ -34,3 +31,12 @@ dependencies { androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' } + +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +artifacts { + archives sourcesJar +} \ No newline at end of file