From 5b016e2d2883b1ec0bec420b030fa9dc29660d5c Mon Sep 17 00:00:00 2001 From: Ferran Pons Date: Thu, 3 Oct 2024 15:51:48 +0200 Subject: [PATCH] Artifact issue try 3 (#394) * added artifact again * 3rd try to solve publish issue --- leku/build.gradle.kts | 5 ----- scripts/publish-module.gradle | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/leku/build.gradle.kts b/leku/build.gradle.kts index 5227ecb8..3bbdc88e 100644 --- a/leku/build.gradle.kts +++ b/leku/build.gradle.kts @@ -47,11 +47,6 @@ android { lint { disable.add("ObsoleteLintCustomCheck") } - publishing { - singleVariant("release") { - withSourcesJar() - } - } namespace = "com.adevinta.leku" } diff --git a/scripts/publish-module.gradle b/scripts/publish-module.gradle index 1f0e02ae..62d3ea2d 100644 --- a/scripts/publish-module.gradle +++ b/scripts/publish-module.gradle @@ -38,9 +38,11 @@ afterEvaluate { artifact("$buildDir/libs/${project.getName()}-${version}.jar") } + generateMetadataFileForReleasePublication.dependsOn androidSourcesJar artifact androidSourcesJar artifact javadocJar + pom { name = project.project.getName() description = 'Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.'