Skip to content

Commit

Permalink
Merge branch 'main' into twyatt/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Feb 27, 2024
2 parents 26216e2 + 2676351 commit 418eb9a
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://help.github.com/articles/about-codeowners/

* @JuulLabs/conx-kotlin-reviewers @cedrickcooke @twyatt
19 changes: 18 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,31 @@ allprojects {
}

withPluginWhenEvaluated("jacoco") {
tasks.register<JacocoReport>("jacocoTestReport") {
group = "Verification"
description = "Generate JaCoCo test coverage report"

reports {
csv.required.set(false)
html.required.set(true)
xml.required.set(true)
}

classDirectories.setFrom(layout.buildDirectory.file("classes/kotlin/jvm/main"))
sourceDirectories.setFrom(layout.projectDirectory.files("src/commonMain", "src/jvmMain"))
executionData.setFrom(layout.buildDirectory.file("jacoco/jvmTest.exec"))

dependsOn("jvmTest")
}

configure<JacocoPluginExtension> {
toolVersion = libs.versions.jacoco.get()
}
}
}

tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(buildDir.resolve("gh-pages"))
outputDirectory.fileProvider(layout.buildDirectory.file("gh-pages").map { it.asFile })
}

fun Project.withPluginWhenEvaluated(plugin: String, action: Project.() -> Unit) {
Expand Down
13 changes: 0 additions & 13 deletions gradle/jacoco.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kotlin = "1.9.22"
ktor = "2.3.8"

[libraries]
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version = "1.7.3" }
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version = "1.8.0" }
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
ktor-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
Expand Down
2 changes: 0 additions & 2 deletions khronicle-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {
id("com.vanniktech.maven.publish")
}

apply(from = rootProject.file("gradle/jacoco.gradle.kts"))

kotlin {
explicitApi()
jvmToolchain(libs.versions.jvm.toolchain.get().toInt())
Expand Down
2 changes: 0 additions & 2 deletions khronicle-ktor-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {
id("com.vanniktech.maven.publish")
}

apply(from = rootProject.file("gradle/jacoco.gradle.kts"))

kotlin {
explicitApi()
jvmToolchain(libs.versions.jvm.toolchain.get().toInt())
Expand Down

0 comments on commit 418eb9a

Please sign in to comment.