Skip to content

Commit

Permalink
Merge pull request #79 from soil-kt/kover
Browse files Browse the repository at this point in the history
Add kover plugin
  • Loading branch information
ogaclejapan authored Aug 25, 2024
2 parents 3fd56ed + 7607a71 commit a454031
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ test:
fmt:
@$(GRADLE_CMD) spotlessApply

.PHONY: kover
kover:
@$(GRADLE_CMD) koverHtmlReport

.PHONY: dokka
dokka:
@$(GRADLE_CMD) dokkaHtmlMultiModule
Expand Down
27 changes: 27 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
alias(libs.plugins.spotless)
}

Expand Down Expand Up @@ -68,3 +69,29 @@ allprojects {
}
}
}

kover {
currentProject {
createVariant("soil") {

}
}
reports {
filters {
excludes {
androidGeneratedClasses()
}
}
}
}

dependencies {
kover(projects.soilQueryCore)
kover(projects.soilQueryCompose)
kover(projects.soilQueryComposeRuntime)
kover(projects.soilQueryReceivers.ktor)
kover(projects.soilQueryTest)
kover(projects.soilSerializationBundle)
kover(projects.soilForm)
kover(projects.soilSpace)
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ junit = "4.13.2"
kotlin = "2.0.20"
kotlinx-coroutines = "1.8.1"
kotlinx-serialization = "1.7.0"
kover = "0.8.3"
ktor = "3.0.0-beta-2"
maven-publish = "0.28.0"
robolectric = "4.12.2"
Expand Down Expand Up @@ -67,5 +68,6 @@ dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
kotlin-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "maven-publish" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
9 changes: 9 additions & 0 deletions soil-form/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -93,3 +94,11 @@ composeCompiler {
reportsDestination = buildTarget.composeCompilerDestination
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-query-compose-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -77,3 +78,11 @@ composeCompiler {
reportsDestination = buildTarget.composeCompilerDestination
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-query-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -108,3 +109,11 @@ composeCompiler {
reportsDestination = buildTarget.composeCompilerDestination
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-query-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -93,3 +94,11 @@ android {
debugImplementation(libs.compose.ui.tooling)
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-query-receivers/ktor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -64,3 +65,11 @@ android {
unitTests.isIncludeAndroidResources = true
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-query-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -70,3 +71,11 @@ android {
unitTests.isIncludeAndroidResources = true
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-serialization-bundle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -72,3 +73,11 @@ android {
debugImplementation(libs.compose.ui.tooling)
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}
9 changes: 9 additions & 0 deletions soil-space/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.maven.publish)
alias(libs.plugins.dokka)
alias(libs.plugins.kover)
}

val buildTarget = the<BuildTargetExtension>()
Expand Down Expand Up @@ -110,3 +111,11 @@ composeCompiler {
reportsDestination = buildTarget.composeCompilerDestination
}
}

kover {
currentProject {
createVariant("soil") {
add("debug")
}
}
}

0 comments on commit a454031

Please sign in to comment.