Skip to content

Commit

Permalink
Fix: jitpack release error
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsdhp committed Jan 29, 2024
1 parent b80234e commit 619d133
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ dependencyResolutionManagement {
}
dependencies {
implementation 'com.github.jdsdhp:enzona-payment-embedded:v0.1.0'
// Replace 'TAG' with the current version of the library.
implementation 'com.github.jdsdhp:enzona-payment-embedded:TAG'
}
```

Expand Down
22 changes: 22 additions & 0 deletions enzona-payment-embedded/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
plugins {
alias(libs.plugins.com.android.library)
alias(libs.plugins.org.jetbrains.kotlin.android)
id("maven-publish")
}

android {
Expand Down Expand Up @@ -48,6 +49,14 @@ android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
publishing {
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
}

dependencies {
Expand All @@ -61,4 +70,17 @@ dependencies {
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = "com.github.jdsdhp"
artifactId = "enzona-payment-embedded"
version = "0.1.1"
afterEvaluate {
from(components["release"])
}
}
}
}
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk17

0 comments on commit 619d133

Please sign in to comment.