Skip to content

Commit

Permalink
Tech: Get name for artifact from each module (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma authored Sep 13, 2021
1 parent c9612dd commit 78c36fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
### LIB ###
#################################################
libVersion=4.1.0
libArtifact=barista
libGroup=com.adevinta.android

#################################################
Expand Down
2 changes: 2 additions & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {

apply(from = "../config/android-quality.gradle")

ext["PUBLISH_ARTIFACT_ID"] = "barista"

apply(from = "${rootProject.projectDir}/scripts/publish-module.gradle")

android {
Expand Down
3 changes: 2 additions & 1 deletion scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ afterEvaluate {
publications {
release(MavenPublication) {
groupId project.property("libGroup")
artifactId project.property("libArtifact")
artifactId PUBLISH_ARTIFACT_ID
version project.property("libVersion")

if (project.plugins.findPlugin("com.android.library")) {
from components.release
} else {
Expand Down

0 comments on commit 78c36fc

Please sign in to comment.