Skip to content

Commit

Permalink
fix: fixing Jitpack publish
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgsduarte committed Oct 21, 2024
1 parent f9c5727 commit c08680b
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ plugins {
id("maven-publish")
}

publishing {
publications {
create<MavenPublication>("maven") {
groupId = "com.github.ditointernet"
artifactId = "library"
version = "2.1.1"
}
}
}

group = "com.github.ditointernet"

android {
Expand Down Expand Up @@ -44,6 +34,13 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down Expand Up @@ -74,3 +71,16 @@ dependencies {
implementation(libs.androidx.room.common)
ksp(libs.androidx.room.compiler)
}

afterEvaluate {
publishing {
publications {
create<MavenPublication>("release") {
from(components["release"])
groupId = "com.github.ditointernet"
artifactId = "sdk_mobile_android"
version = "2.1.1"
}
}
}
}

0 comments on commit c08680b

Please sign in to comment.