Files
webgit/build.gradle.kts
Sebastiaan de Schaetzen 39f09f03ff Add JaCoCo coverage and improve tests to 98.7%
Add JaCoCo plugin for coverage reporting. Add additional tests
for null/edge cases in TelnetSession, TelnetServer, and
WebgitApplication.main to maximize coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 08:48:06 +01:00

54 lines
1.5 KiB
Kotlin

plugins {
java
jacoco
id("org.springframework.boot") version "4.0.3"
id("io.spring.dependency-management") version "1.1.7"
}
group = "be.seeseepuff"
version = "0.0.1-SNAPSHOT"
description = "webgit"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-webmvc")
implementation("org.eclipse.jgit:org.eclipse.jgit:7.2.0.202503040940-r")
compileOnly("org.projectlombok:lombok")
developmentOnly("org.springframework.boot:spring-boot-devtools")
runtimeOnly("io.micrometer:micrometer-registry-prometheus")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-actuator-test")
testImplementation("org.springframework.boot:spring-boot-starter-thymeleaf-test")
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<Test> {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
csv.required = true
}
}