diff --git a/library/build.gradle b/library/build.gradle index c25a507..698ee97 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -6,7 +6,7 @@ ext { GROUP = 'com.codepath.libraries' BASE_VERSION = "2.3" - VERSION_NAME = "2.3.0" + VERSION_NAME = "2.3.1" POM_PACKAGING = "aar" POM_DESCRIPTION = "CodePath OAuth Handler" @@ -52,6 +52,11 @@ android { } } +task androidSourcesJar(type: Jar) { + archiveClassifier.set('sources') + from android.sourceSets.main.java.srcDirs +} + afterEvaluate { publishing { publications { @@ -59,6 +64,7 @@ afterEvaluate { release(MavenPublication) { // Applies the component for the release build variant. from components.release + artifact androidSourcesJar // You can then customize attributes of the publication as shown below. groupId = GROUP