Add Tests

This commit is contained in:
2021-06-26 01:51:33 +02:00
parent 181176ed21
commit ce55c58430
7 changed files with 236 additions and 25 deletions

View File

@@ -3,6 +3,7 @@ plugins {
`maven-publish`
kotlin("jvm") version "+"
id("net.nemerosa.versioning") version "+"
id("org.jlleitschuh.gradle.ktlint") version "+"
id("org.sonarqube") version "+"
}
@@ -15,6 +16,14 @@ version = versioning.info.run {
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
sourceCompatibility = "11"
targetCompatibility = "11"
}
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
@@ -54,10 +63,18 @@ publishing {
}
} else {
org.slf4j.LoggerFactory.getLogger("gradle")
.error("The git is DIRTY (${versioning.info.full})")
.error("The git is DIRTY (${versioning.info.full})")
}
}
repositories {
mavenCentral()
}
}
tasks.test {
useJUnitPlatform()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.7.+")
}