diff --git a/build.gradle.kts b/build.gradle.kts index b083ba38..1bf17efe 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..8ca5bdf0 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: +- openjdk17 diff --git a/sdk-okhttp/build.gradle.kts b/sdk-okhttp/build.gradle.kts index fdd181d6..76efb84b 100644 --- a/sdk-okhttp/build.gradle.kts +++ b/sdk-okhttp/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("com.android.library") id("org.jetbrains.kotlin.android") kotlin("plugin.serialization") + id("maven-publish") } android { @@ -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("release") { + groupId = findProperty("group") as String + artifactId = "authgear-sdk-android-okhttp" + version = findProperty("version") as String + + afterEvaluate { + from(components["release"]) + } + } + } +} diff --git a/sdk/build.gradle.kts b/sdk/build.gradle.kts index e450ac1d..b040102e 100644 --- a/sdk/build.gradle.kts +++ b/sdk/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("com.android.library") id("org.jetbrains.kotlin.android") kotlin("plugin.serialization") + id("maven-publish") } android { @@ -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("release") { + groupId = findProperty("group") as String + artifactId = "authgear-sdk-android" + version = findProperty("version") as String + + afterEvaluate { + from(components["release"]) + } + } + } +}