From 3f8dff6b1f09fec45a0f462eaef70981cb5b180b Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 10 Jul 2023 15:51:40 +0200 Subject: [PATCH 1/3] Publish KSP processors --- ksp-processors/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/ksp-processors/build.gradle.kts b/ksp-processors/build.gradle.kts index a450e7e5b48..dbfc439008e 100644 --- a/ksp-processors/build.gradle.kts +++ b/ksp-processors/build.gradle.kts @@ -1,5 +1,6 @@ plugins { `kord-internal-module` + `kord-publishing` } dependencies { From ec2e0ede170cb235b824007c4cbfd3c42d0e8074 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 15 Jul 2023 16:42:59 +0200 Subject: [PATCH 2/3] Create publication for ksp-processor --- ksp-processors/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ksp-processors/build.gradle.kts b/ksp-processors/build.gradle.kts index dbfc439008e..18aca1df25b 100644 --- a/ksp-processors/build.gradle.kts +++ b/ksp-processors/build.gradle.kts @@ -12,3 +12,10 @@ dependencies { implementation(libs.kotlinx.serialization.json) // use types directly } + +publishing { + publications.register(Library.name) { + from(components["java"]) + artifact(tasks.kotlinSourcesJar) + } +} From e58e54c6abaaea18e1d4d8031c36766b2662acda Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sat, 15 Jul 2023 16:49:55 +0200 Subject: [PATCH 3/3] Add Dokka --- ksp-processors/build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/ksp-processors/build.gradle.kts b/ksp-processors/build.gradle.kts index 18aca1df25b..494c95d6e32 100644 --- a/ksp-processors/build.gradle.kts +++ b/ksp-processors/build.gradle.kts @@ -1,5 +1,6 @@ plugins { `kord-internal-module` + org.jetbrains.dokka `kord-publishing` }