Files
OpenMMO/buildSrc/src/main/kotlin/kotlin-jvm.gradle.kts
T

30 lines
464 B
Kotlin

package buildsrc.convention
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.withType
plugins {
kotlin("jvm")
}
kotlin {
jvmToolchain(25)
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging {
events(
TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED
)
}
}