diff --git a/build.gradle.kts b/build.gradle.kts index a4a6827..27f5958 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,6 +4,7 @@ plugins { id("com.android.library") version "8.2.2" apply false id("com.google.protobuf") version "0.9.4" apply false id("com.vanniktech.maven.publish") version "0.30.0" apply false + id("org.jetbrains.dokka") version "1.9.20" apply false } allprojects { diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 18fbbb1..9b5b084 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("org.jetbrains.kotlin.android") kotlin("plugin.serialization") id("com.vanniktech.maven.publish") + id("org.jetbrains.dokka") } android { @@ -27,6 +28,14 @@ android { } +tasks.withType().configureEach { + dokkaSourceSets.configureEach { + jdkVersion.set(17) + suppressInheritedMembers.set(false) + suppressObviousFunctions.set(true) + } +} + dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0") diff --git a/network/build.gradle.kts b/network/build.gradle.kts index e6e0c00..5b285b4 100644 --- a/network/build.gradle.kts +++ b/network/build.gradle.kts @@ -4,6 +4,7 @@ plugins { id("com.google.protobuf") kotlin("plugin.serialization") id("com.vanniktech.maven.publish") + id("org.jetbrains.dokka") } android { @@ -28,6 +29,14 @@ android { } +tasks.withType().configureEach { + dokkaSourceSets.configureEach { + jdkVersion.set(17) + suppressInheritedMembers.set(false) + suppressObviousFunctions.set(true) + } +} + dependencies { implementation(project(":core")) implementation(project(":protocol")) diff --git a/persistence-sqlite/build.gradle.kts b/persistence-sqlite/build.gradle.kts index b6ae178..54398ba 100644 --- a/persistence-sqlite/build.gradle.kts +++ b/persistence-sqlite/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("org.jetbrains.kotlin.android") kotlin("plugin.serialization") id("com.vanniktech.maven.publish") + id("org.jetbrains.dokka") } android { @@ -31,6 +32,14 @@ android { } } +tasks.withType().configureEach { + dokkaSourceSets.configureEach { + jdkVersion.set(17) + suppressInheritedMembers.set(false) + suppressObviousFunctions.set(true) + } +} + dependencies { implementation(project(":core")) implementation("androidx.sqlite:sqlite-ktx:2.4.0") diff --git a/protocol/build.gradle.kts b/protocol/build.gradle.kts index 0f328e7..8160a03 100644 --- a/protocol/build.gradle.kts +++ b/protocol/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("org.jetbrains.kotlin.android") id("com.google.protobuf") id("com.vanniktech.maven.publish") + id("org.jetbrains.dokka") } android { @@ -27,6 +28,14 @@ android { } +tasks.withType().configureEach { + dokkaSourceSets.configureEach { + jdkVersion.set(17) + suppressInheritedMembers.set(false) + suppressObviousFunctions.set(true) + } +} + dependencies { api("com.google.protobuf:protobuf-kotlin-lite:3.24.4") // Updated version to match protoc if possible, checking latest stable implementation("com.google.protobuf:protobuf-javalite:3.24.4") // Java lite dependency often needed for generated Java code