Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import com.diffplug.gradle.spotless.SpotlessExtension
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask

plugins {
id("root.publication")
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.kotlinx.serialization) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotest.multiplatform) apply false
alias(libs.plugins.dokka)
}
Expand All @@ -29,6 +29,20 @@ subprojects {
}
}

tasks.withType<DokkaMultiModuleTask> {
outputDirectory.set(projectDir.resolve("docs"))
dokka {
dokkaPublications.html {
outputDirectory.set(projectDir.resolve("docs"))
}
}

dependencies {
dokka(project(":src:core"))
dokka(project(":src:tools:http"))
dokka(project(":src:tools:openapi"))
dokka(project(":src:platform"))
dokka(project(":src:providers:openai"))
dokka(project(":src:providers:gemini"))
dokka(project(":src:providers:vertexai"))
dokka(project(":src:providers:ollama"))
dokka(project(":src:cloud:google-cloud-function"))
}
29 changes: 15 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[versions]
kotlin = "2.1.10"
kotlin = "2.3.10"
ksp = "2.3.5"
coroutines = "1.10.2"
serialization = "1.8.1"
ktor = "3.2.2"
serialization = "1.10.0"
ktor = "3.4.0"
nexus-publish = "2.0.0"
kotlinOpenapiBindings = "0.0.24"
kotest = "5.9.1"
mockk = "1.14.5"
openaiClient = "3.8.2"
kotlinOpenapiBindings = "0.2.1"
kotest = "6.1.3"
mockk = "1.14.9"
openaiClient = "4.1.0"
google-cloud-functions-framework = "^3.5.1"
wirespec = "0.9.23"
logback = "1.5.6"
google-gen-ai = "1.28.0"
wirespec = "0.17.19"
logback = "1.5.31"
google-gen-ai = "1.39.0"

[libraries]
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
Expand Down Expand Up @@ -43,7 +44,6 @@ openai-client = { group = "com.aallam.openai", name = "openai-client", version.r
#Test
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" }
kotest-property = { module = "io.kotest:kotest-property", version.ref = "kotest" }
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
Expand All @@ -57,7 +57,8 @@ google-gen-ai = { module = "com.google.genai:google-genai", version.ref = "googl
[plugins]
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
spotless = { id = "com.diffplug.gradle.spotless", version = "6.20.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.8.20" }
kotest-multiplatform = { id = "io.kotest.multiplatform", version.ref = "kotest" }
spotless = { id = "com.diffplug.spotless", version = "8.2.1" }
dokka = { id = "org.jetbrains.dokka", version = "2.1.0" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotest-multiplatform = { id = "io.kotest", version.ref = "kotest" }
wirespec = { id = "community.flock.wirespec.plugin.gradle", version.ref = "wirespec" }
2 changes: 1 addition & 1 deletion src/cloud/google-cloud-function/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.dokka)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
alias(libs.plugins.kotlinx.serialization)
id("module.publication")
Expand All @@ -23,7 +24,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.dokka)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
id("module.publication")
}
Expand Down Expand Up @@ -30,7 +31,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
implementation(libs.kotest.property)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.dokka)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
alias(libs.plugins.wirespec)
id("module.publication")
Expand Down Expand Up @@ -57,7 +58,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
implementation(libs.kotest.property)
implementation(libs.ktor.client.mock)
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/jsonschema/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
id("module.publication")
}
Expand All @@ -24,7 +25,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
implementation(libs.kotest.property)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("module.publication")
alias(libs.plugins.dokka)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
}

Expand Down Expand Up @@ -34,7 +35,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
implementation(libs.kotest.property)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tools/openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.dokka)
alias(libs.plugins.ksp)
alias(libs.plugins.kotest.multiplatform)
id("module.publication")
}
Expand All @@ -26,7 +27,6 @@ kotlin {
dependencies {
implementation(libs.kotest.framework.engine)
implementation(libs.kotest.assertions.core)
implementation(libs.kotest.framework.datatest)
}
}

Expand Down
Loading