Skip to content

Commit

Permalink
ensure release is built before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
f43nd1r committed Jul 22, 2020
1 parent 802fe71 commit bd91ddb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/acra-android-library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,10 @@ tasks.register<Jar>("javadocJar") {
archiveClassifier.set("javadoc")
}

afterEvaluate {
val assembleRelease = tasks["assembleRelease"]
rootProject.tasks["afterReleaseBuild"].dependsOn(assembleRelease)
tasks.findByName("publish")?.mustRunAfter(assembleRelease)
}

fun Javadoc.linksOffline(extDocUrl: String, packageListLoc: String) = (options as StandardJavadocDocletOptions).linksOffline(extDocUrl, packageListLoc)

0 comments on commit bd91ddb

Please sign in to comment.