mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-23 05:49:59 +00:00
57 lines
923 B
Plaintext
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)
|
|
}
|
|
}
|