From 09f8f73f57f478e1782b12beb4e4d0f35447310c Mon Sep 17 00:00:00 2001 From: Armin Date: Tue, 27 Feb 2024 11:46:17 +0100 Subject: [PATCH] Fix deprecation --- src/main/groovy/de.cyface.android-publish.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/groovy/de.cyface.android-publish.gradle b/src/main/groovy/de.cyface.android-publish.gradle index 54eac87..472526f 100644 --- a/src/main/groovy/de.cyface.android-publish.gradle +++ b/src/main/groovy/de.cyface.android-publish.gradle @@ -163,7 +163,10 @@ publishing { artifactId "${project.name}${flavor.contains('movebis') ? 'movebis' : ''}" project.logger.lifecycle('artifactId: ' + artifactId) version android.defaultConfig.versionName - artifact(variant.packageLibraryProvider.get().archivePath) + variant.outgoing.artifact(variant.packageLibraryProvider) { + builtBy variant.packageLibraryProvider + type 'aar' + } // Put javadoc and sources into jar println "publish dependency: ${project.name}${variant.name.capitalize()} on ${variant.name}JavadocJar/SourcesJar" println ""