Skip to content

Commit

Permalink
feat(publish): add sources.jar in published package
Browse files Browse the repository at this point in the history
See #46
  • Loading branch information
ThibaultBee committed Sep 24, 2022
1 parent fd7bd41 commit 9366c21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ def getRepositoryPassword() {
return hasProperty('MAVEN_PASSWORD') ? OSSRH_PASSWORD : System.getenv("MAVEN_PASSWORD")
}

android {
publishing {
multipleVariants {
withSourcesJar()
allVariants()
}
}
}

afterEvaluate {
publishing {
publications {
Expand Down

0 comments on commit 9366c21

Please sign in to comment.