Skip to content

Commit bc434c1

Browse files
committed
Disable Gradle metadata publishing for all but native modules
1 parent ca98207 commit bc434c1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gradle/publish-bintray.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,16 @@ bintrayUpload.doFirst {
7272
println("Uploading artifact '$it.groupId:$it.artifactId:$it.version' from publication '$it.name'")
7373
it
7474
}
75+
}
76+
77+
// TODO :kludge this is required to disable publish of metadata for all but native
78+
if (!isNative) {
79+
afterEvaluate {
80+
publishing.publications.each { pub ->
81+
pub.gradleModuleMetadataFile = null
82+
tasks.matching { it.name == "generateMetadataFileFor${pub.name.capitalize()}Publication" }.all {
83+
onlyIf { false }
84+
}
85+
}
86+
}
7587
}

0 commit comments

Comments
 (0)