diff --git a/build.gradle b/build.gradle index 4c3bd0ac8..57a66af77 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.5.0' - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' } } diff --git a/zxing-android-embedded/build.gradle b/zxing-android-embedded/build.gradle index 0c17e3f81..b43612188 100644 --- a/zxing-android-embedded/build.gradle +++ b/zxing-android-embedded/build.gradle @@ -65,12 +65,11 @@ task sourceJar(type: Jar) { from android.sourceSets.main.java.srcDirs } -publishing { - publications { - // We need this check to cover Android Studio gradle sync - if(project.tasks.findByPath('bundleRelease') != null) { +project.afterEvaluate { + publishing { + publications { maven(MavenPublication) { - artifact bundleRelease + artifact bundleReleaseAar artifactId project.artifactId artifact sourceJar @@ -90,7 +89,6 @@ publishing { } } - } } }