Skip to content

Commit

Permalink
Add sources for Jcenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad Melegy committed Oct 24, 2020
1 parent df4b8ab commit 5b989cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions library-no-op/bintray-setup.gradle
Expand Up @@ -6,6 +6,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
artifact androidSourcesJar
from components.release
groupId = libraryGroupId
artifactId = libraryArtifactId
Expand All @@ -15,6 +16,15 @@ afterEvaluate {
}
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.source
}

artifacts {
archives androidSourcesJar
}

bintray {
user = project.property('bintray.user')
key = project.property('bintray.token')
Expand Down
10 changes: 10 additions & 0 deletions library/bintray-setup.gradle
Expand Up @@ -6,6 +6,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
artifact androidSourcesJar
from components.release
groupId = libraryGroupId
artifactId = libraryArtifactId
Expand All @@ -15,6 +16,15 @@ afterEvaluate {
}
}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.source
}

artifacts {
archives androidSourcesJar
}

bintray {
user = project.property('bintray.user')
key = project.property('bintray.token')
Expand Down

0 comments on commit 5b989cb

Please sign in to comment.