Skip to content

Commit

Permalink
remove MPP
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnz committed Dec 9, 2023
1 parent c7f937c commit 66cfe6e
Show file tree
Hide file tree
Showing 8 changed files with 358 additions and 249 deletions.
36 changes: 11 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,30 @@ tasks.wrapper {

plugins {
kotlin("multiplatform") version "1.6.21"
kotlin("plugin.serialization") version "1.4.21"
id("org.jetbrains.dokka") version "1.4.20"
id("io.kotest") version "0.2.6"
id("org.jetbrains.kotlinx.kover") version "0.5.0"
// jacoco
kotlin("plugin.serialization") version "1.6.21"
id("org.jetbrains.dokka") version "1.6.21"
id("io.kotest") version "0.3.9"
id("org.jetbrains.kotlinx.kover") version "0.6.1"
id("java-library")
signing
id("de.marcphilipp.nexus-publish") version "0.4.0"
id("io.codearte.nexus-staging") version "0.30.0"
}

//jacoco {
// toolVersion = "0.8.6"
//}

repositories {
// jcenter()
mavenCentral()
mavenLocal()
}

group = "io.github.animatedledstrip"
version = "1.1.1"
version = "1.2.0-SNAPSHOT"
description = "A library for creating an AnimatedLEDStrip server"

kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
// compilations.all {
// kotlinOptions.jvmTarget = "1.8"
// }
}
// js(LEGACY) {
// browser {
Expand All @@ -81,7 +75,7 @@ kotlin {
val commonMain by getting {
dependencies {
api(kotlin("reflect"))
api("io.github.animatedledstrip:animatedledstrip-core:1.0.1")
api("io.github.animatedledstrip:animatedledstrip-core:1.1.0-SNAPSHOT")
}
}
val commonTest by getting {
Expand All @@ -94,7 +88,7 @@ kotlin {
}
val jvmMain by getting {
dependencies {
api("io.github.animatedledstrip:animatedledstrip-core-jvm:1.0.1")
api("io.github.animatedledstrip:animatedledstrip-core-jvm:1.1.0-SNAPSHOT")

api("commons-cli:commons-cli:1.4")
implementation("io.github.maxnz:interactive-command-parser:0.1")
Expand All @@ -104,7 +98,7 @@ kotlin {
api("io.ktor:ktor-server-netty:1.5.0")
api("io.ktor:ktor-serialization:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.20.0")
api("ch.qos.logback:logback-classic:1.2.3")
api("ch.qos.logback:logback-classic:1.4.3")
}
}
val jvmTest by getting {
Expand Down Expand Up @@ -144,14 +138,6 @@ tasks.named<Test>("jvmTest") {
systemProperties = System.getProperties().map { it.key.toString() to it.value }.toMap()
}

tasks.test {
extensions.configure(kotlinx.kover.api.KoverTaskExtension::class) {
isDisabled = false
binaryReportFile.set(file("$buildDir/reports/result.bin"))
includes = listOf("animatedledstrip.*")
}
}

//tasks.jacocoTestReport {
// val coverageSourceDirs = arrayOf(
// "${projectDir}/src/commonMain/kotlin",
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Loading

0 comments on commit 66cfe6e

Please sign in to comment.