Skip to content

Commit

Permalink
Fixing beta publishing issue (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoSignoretto authored Oct 28, 2021
1 parent 7d1dee9 commit e8e6a5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android.useAndroidX=true
android.enableJetifier=true

GROUP=com.careem.mockingbird
VERSION=2.0.0-beta04
VERSION=2.0.0-beta05
POM_NAME=mockingbird
POM_DESCRIPTION=A Koltin multiplatform library that provides an easier way to mock and write unit tests for a multiplatform project

Expand Down
13 changes: 10 additions & 3 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ task javadocJar(type: Jar) {
archiveClassifier.set("javadoc")
}

task emptyJar(type: Jar) {
archiveClassifier.set("sources")
}

afterEvaluate {
publishing {
publications {
withType(MavenPublication) {
def type = it.name
logger.info("Configuring $type")

artifact javadocJar

Expand All @@ -71,9 +77,10 @@ afterEvaluate {
}
}
}
}
pluginMaven(MavenPublication){
artifact sourcesJar

if(type == 'pluginMaven'){
artifact sourcesJar
}
}
}

Expand Down

0 comments on commit e8e6a5b

Please sign in to comment.