Skip to content

Commit

Permalink
Apply multiplatform, multiproject, accumulated, kover configuration (#…
Browse files Browse the repository at this point in the history
…486)

* Apply multiplatform, multiproject, accumulated, kover configuration

* Remove changes out of scope
  • Loading branch information
ashdavies authored Aug 22, 2023
1 parent 729ddba commit 77b598e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ dependencies {
implementation(plugin(apollo.graphql))
implementation(plugin(cash.sqldelight))
implementation(plugin(diffplug.spotless))
implementation(plugin(jetbrains.terraform))
implementation(plugin(kotlin.compose))
implementation(plugin(kotlin.multiplatform))
implementation(plugin(kotlin.serialization))
implementation(plugin(jetbrains.terraform))
}
}

Expand Down
2 changes: 0 additions & 2 deletions build-plugins/src/main/kotlin/io.ashdavies.kotlin.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,3 @@ tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += Playground.freeCompilerArgs
kotlinOptions.jvmTarget = "${Playground.jvmTarget}"
}

apply(plugin = "org.jetbrains.kotlinx.kover")
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ plugins {
classpath(cash.sqldelight)
classpath(diffplug.spotless)
classpath(google.services)
classpath(kotlinx.kover)

with(kotlin) {
classpath(compose)
Expand All @@ -27,6 +26,7 @@ plugins {

alias(dependency.analysis)
alias(gradle.doctor)
alias(kotlinx.kover)
}
}

Expand All @@ -35,3 +35,12 @@ doctor {
disallowCleanTaskDependencies.set(false)
javaHome { failOnError.set(false) }
}

val targetProject = project

subprojects {
pluginManager.withPlugin("io.ashdavies.kotlin") {
project.apply(plugin = "org.jetbrains.kotlinx.kover")
targetProject.dependencies.kover(project)
}
}
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ include(
":http-client",
":image-loader",
":kotlin-gb",
":lint-cli",
":local-storage",
":micro-yaml",
":notion-client",
Expand Down

0 comments on commit 77b598e

Please sign in to comment.