Skip to content

Commit

Permalink
Set up Jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Jul 9, 2024
1 parent 5ccef0d commit 8b724a4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
kotlin("plugin.serialization") version "1.9.20" apply false
id("org.jetbrains.dokka") version "1.9.10"
id("maven-publish")
}

subprojects {
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk17
15 changes: 15 additions & 0 deletions sdk-okhttp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
kotlin("plugin.serialization")
id("maven-publish")
}

android {
Expand Down Expand Up @@ -53,3 +54,17 @@ dependencies {
androidTestImplementation("androidx.test.ext:junit:1.1.2")
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = findProperty("group") as String
artifactId = "authgear-sdk-android-okhttp"
version = findProperty("version") as String

afterEvaluate {
from(components["release"])
}
}
}
}
15 changes: 15 additions & 0 deletions sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
kotlin("plugin.serialization")
id("maven-publish")
}

android {
Expand Down Expand Up @@ -60,3 +61,17 @@ dependencies {
androidTestImplementation("androidx.test.ext:junit:1.1.2")
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
}

publishing {
publications {
register<MavenPublication>("release") {
groupId = findProperty("group") as String
artifactId = "authgear-sdk-android"
version = findProperty("version") as String

afterEvaluate {
from(components["release"])
}
}
}
}

0 comments on commit 8b724a4

Please sign in to comment.