jellyfin-sdk-kotlin/jellyfin-api-ktor/build.gradle.kts
2024-05-11 21:51:35 +02:00

57 lines
923 B
Plaintext

plugins {
kotlin("multiplatform")
alias(libs.plugins.dokka)
}
kotlin {
explicitApi()
jvm()
jvmToolchain(8)
sourceSets {
all {
languageSettings {
progressiveMode = true
}
}
val commonMain by getting {
dependencies {
implementation(projects.jellyfinApi)
implementation(projects.jellyfinModel)
implementation(libs.kotlinx.serialization.core)
implementation(libs.ktor.core)
implementation(libs.kotlin.logging)
}
}
val jvmMain by getting {
dependencies {
implementation(libs.ktor.okhttp)
}
}
val commonTest by getting {
dependencies {
implementation(projects.testutils)
}
}
}
}
enablePublishing {
val javadocJar by tasks.creating(Jar::class) {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
publications.withType<MavenPublication> {
artifact(javadocJar)
}
}