Skip to content

Commit 2e14fe8

Browse files
committed
Add support for sources too
1 parent b98a34a commit 2e14fe8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/build.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ext {
1111
POM_DESC = "Async Http Client wrapper using OkHttp"
1212
POM_SCM_URL = 'https://github.com/codepath/AsyncHttpClient'
1313
BASE_VERSION = 2
14-
VERSION_NAME = "2.0.0"
14+
VERSION_NAME = "2.0.1"
1515
}
1616

1717
version = VERSION_NAME
@@ -51,6 +51,10 @@ dependencies {
5151
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
5252
}
5353

54+
task androidSourcesJar(type: Jar) {
55+
archiveClassifier.set('sources')
56+
from android.sourceSets.main.java.srcDirs
57+
}
5458

5559
// Because the components are created only during the afterEvaluate phase, you must
5660
// configure your publications using the afterEvaluate() lifecycle method.
@@ -61,6 +65,7 @@ afterEvaluate {
6165
release(MavenPublication) {
6266
// Applies the component for the release build variant.
6367
from components.release
68+
artifact androidSourcesJar
6469

6570
// You can then customize attributes of the publication as shown below.
6671
groupId = group

0 commit comments

Comments
 (0)