Skip to content

Commit

Permalink
Merge pull request #21 from arkivanov/publish-sources-for-android-mod…
Browse files Browse the repository at this point in the history
…ules

Publish sources for Android modules
  • Loading branch information
arkivanov authored Dec 20, 2020
2 parents 82aafee + 73c0b2b commit 5d7d59e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ afterEvaluate {
publications {
debug(MavenPublication) {
from components.debug
artifact sourceJar

group = "com.arkivanov.decompose"
artifactId = "extensions-android-debug"
Expand All @@ -31,6 +32,7 @@ afterEvaluate {

release(MavenPublication) {
from components.release
artifact sourceJar

group = "com.arkivanov.decompose"
artifactId = "extensions-android"
Expand All @@ -43,3 +45,8 @@ afterEvaluate {
setupPublicationRepository(it)
}
}

task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "source"
}
7 changes: 7 additions & 0 deletions extensions-compose-jetpack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ afterEvaluate {
publications {
debug(MavenPublication) {
from components.debug
artifact sourceJar

group = "com.arkivanov.decompose"
artifactId = "extensions-compose-jetpack-debug"
Expand All @@ -33,6 +34,7 @@ afterEvaluate {

release(MavenPublication) {
from components.release
artifact sourceJar

group = "com.arkivanov.decompose"
artifactId = "extensions-compose-jetpack"
Expand All @@ -45,3 +47,8 @@ afterEvaluate {
setupPublicationRepository(it)
}
}

task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "source"
}

0 comments on commit 5d7d59e

Please sign in to comment.