From 857827e1e80086a86cee32027f6c94e8f71bd062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernat=20Borr=C3=A1s?= Date: Thu, 19 Aug 2021 11:20:58 +0200 Subject: [PATCH] Fix artifact name --- gradle.properties | 1 + library/build.gradle.kts | 4 +--- scripts/publish-module.gradle | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7f31482b..5792a1b1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,6 +2,7 @@ ### LIB ### ################################################# libVersion=3.10.0 +libArtifact=barista libGroup=com.adevinta.android ################################################# diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 86a23bb2..bef0bc3f 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -3,9 +3,7 @@ plugins { kotlin("android") } -apply(from= "../config/android-quality.gradle") - -ext["PUBLISH_ARTIFACT_ID"] = "barista" +apply(from = "../config/android-quality.gradle") apply(from = "${rootProject.projectDir}/scripts/publish-module.gradle") diff --git a/scripts/publish-module.gradle b/scripts/publish-module.gradle index dcfca1a7..b49a893b 100644 --- a/scripts/publish-module.gradle +++ b/scripts/publish-module.gradle @@ -29,7 +29,7 @@ afterEvaluate { publications { release(MavenPublication) { groupId project.property("libGroup") - artifactId project.project.getName() + artifactId project.property("libArtifact") version project.property("libVersion") if (project.plugins.findPlugin("com.android.library")) { from components.release