Skip to content

Commit

Permalink
Fix bintray publishing issues.
Browse files Browse the repository at this point in the history
rkistner committed Sep 7, 2019
1 parent 9aa5381 commit d77fa29
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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'
}
}

10 changes: 4 additions & 6 deletions zxing-android-embedded/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
}

}

}
}
}

0 comments on commit d77fa29

Please sign in to comment.