diff --git a/_publish.gradle b/_publish.gradle index b0cab15..a75d8bf 100644 --- a/_publish.gradle +++ b/_publish.gradle @@ -63,9 +63,9 @@ publishing { // Two artifacts, the `aar` (or `jar`) and the sources if (project.plugins.findPlugin("com.android.library")) { - artifact("${getLayout().buildDirectory}/outputs/aar/${project.getName()}-release.aar") + artifact("${getLayout().buildDirectory.asFile.get()}/outputs/aar/${project.getName()}-release.aar") } else { - artifact("${getLayout().buildDirectory}/libs/${project.getName()}-${version}.jar") + artifact("${getLayout().buildDirectory.asFile.get()}/libs/${project.getName()}-${version}.jar") } artifact androidSourcesJar