Skip to content

Commit

Permalink
Merge pull request #887 from kubode/kubode/fix_android_publishing
Browse files Browse the repository at this point in the history
Fix an issue that Android libraries was not published
  • Loading branch information
Raibaz committed Aug 23, 2022
2 parents bee2223 + 5d40bb2 commit ae698e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
@@ -1,7 +1,5 @@
package buildsrc.convention

import org.gradle.jvm.tasks.Jar

plugins {
id("com.android.library")

Expand Down
Expand Up @@ -64,6 +64,16 @@ publishing {
}
}*/
}
// Configure for Android libraries
publications {
if (project.extensions.findByName("android") != null) {
register<MavenPublication>("release") {
afterEvaluate {
from(components["release"])
}
}
}
}
publications.withType<MavenPublication>().configureEach {
createMockKPom {
name.set(provider { mavenName })
Expand Down

0 comments on commit ae698e2

Please sign in to comment.