Skip to content

Commit

Permalink
Deliver source with release
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Sep 21, 2021
1 parent b5fb443 commit d72c316
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions serviceLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,17 @@ dependencies {
androidTestImplementation "androidx.test:rules:1.4.0"
}

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

project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar
}
}
}
Expand Down

0 comments on commit d72c316

Please sign in to comment.