2026-02-05 01:05:02 +11:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
plugins {
|
2026-02-05 02:46:13 +11:00
|
|
|
alias(libs.plugins.androidMultiplatformLibrary)
|
2026-02-16 15:51:03 +11:00
|
|
|
alias(libs.plugins.kotest)
|
2026-02-05 01:05:02 +11:00
|
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
|
|
|
alias(libs.plugins.kotlinSerialization)
|
2026-02-16 15:51:03 +11:00
|
|
|
alias(libs.plugins.ksp)
|
2026-02-05 01:05:02 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2026-02-05 02:46:13 +11:00
|
|
|
androidLibrary {
|
|
|
|
|
namespace = "moe.lava.neon.api.rest"
|
|
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
|
|
2026-02-05 01:05:02 +11:00
|
|
|
compilerOptions {
|
|
|
|
|
jvmTarget.set(JvmTarget.JVM_11)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-05 02:46:13 +11:00
|
|
|
jvm()
|
|
|
|
|
|
2026-02-05 01:05:02 +11:00
|
|
|
sourceSets {
|
|
|
|
|
commonMain.dependencies {
|
|
|
|
|
implementation(project(":api:shared"))
|
|
|
|
|
implementation(project(":common"))
|
|
|
|
|
|
|
|
|
|
implementation(libs.kermit)
|
|
|
|
|
implementation(libs.ktor.client.core)
|
|
|
|
|
implementation(libs.ktor.client.content.negotiation)
|
|
|
|
|
implementation(libs.ktor.serialization.kotlinx.json)
|
|
|
|
|
}
|
|
|
|
|
commonTest.dependencies {
|
|
|
|
|
implementation(libs.kotlin.test)
|
2026-02-16 15:51:03 +11:00
|
|
|
implementation(libs.kotest.assertions)
|
|
|
|
|
implementation(libs.kotest.framework)
|
|
|
|
|
implementation(libs.kotest.property)
|
|
|
|
|
implementation(libs.ktor.client.mock)
|
2026-02-05 01:05:02 +11:00
|
|
|
}
|
|
|
|
|
jvmMain.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.okhttp)
|
|
|
|
|
}
|
2026-02-16 15:51:03 +11:00
|
|
|
jvmTest.dependencies {
|
|
|
|
|
implementation(libs.kotest.runner.junit5)
|
|
|
|
|
}
|
2026-02-05 01:05:02 +11:00
|
|
|
androidMain.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.okhttp)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-02-16 15:51:03 +11:00
|
|
|
|
|
|
|
|
tasks.named<Test>("jvmTest") {
|
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//tasks.withType<Test>().configureEach {
|
|
|
|
|
// logger.lifecycle("UP-TO-DATE check for $name is disabled, forcing it to run.")
|
|
|
|
|
// outputs.upToDateWhen { false }
|
|
|
|
|
//}
|