Skip to content

Commit

Permalink
fix #24 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokermonn authored Apr 16, 2021
1 parent bef2b7b commit 173d5e1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gradle-mavenizer.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ apply from: "https://raw.githubusercontent.com/sky-uk/gradle-maven-plugin/${grad
project.afterEvaluate {
publishing {
publications {
mavenPublish(MavenPublication) {
if (isAndroidProject()) {
artifact bundleReleaseAar
artifact androidJavadocsJar
artifact androidSourcesJar
} else {
if (isAndroidProject()) {
android.libraryVariants.all { variant ->
"maven${variant.name.capitalize()}Publish"(MavenPublication) {
artifact project.tasks.findByName("bundle${variant.name.capitalize()}Aar")
artifact androidJavadocsJar
artifact androidSourcesJar
}
}
} else {
mavenPublish(MavenPublication) {
artifact jar
artifact sourcesJar
artifact javadocJar
}

decoratePom(pom)
}
}

repositories {
def isToRemoteRepo = getBooleanProperty("mavPublishToRemoteRepo")
def isToInternalRepo = getBooleanProperty("mavPublishToInternalRepo")
Expand Down

0 comments on commit 173d5e1

Please sign in to comment.