Skip to content

Commit

Permalink
Disable metadata publishing for all but native modules
Browse files Browse the repository at this point in the history
  • Loading branch information
elizarov committed Oct 17, 2018
1 parent 0f4f543 commit 259c431
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gradle/publish-bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,15 @@ bintrayUpload.doFirst {
it
}
}

// TODO :kludge this is required to disable publish of metadata for all but native
if (!isNative) {
afterEvaluate {
publishing.publications.each { pub ->
pub.gradleModuleMetadataFile = null
tasks.matching { it.name == "generateMetadataFileFor${pub.name.capitalize()}Publication" }.all {
onlyIf { false }
}
}
}
}

0 comments on commit 259c431

Please sign in to comment.