exposed-java-time/build.gradle.kts (45 lines of code) (raw):
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
alias(libs.plugins.serialization)
alias(libs.plugins.dokka)
}
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(17)
}
dependencies {
api(project(":exposed-core"))
testCompileOnly(project(":exposed-jdbc"))
testImplementation(project(":exposed-dao"))
testImplementation(project(":exposed-tests"))
testImplementation(project(":exposed-json"))
testImplementation(libs.junit5)
testRuntimeOnly(libs.junit.platform.launcher)
testImplementation(kotlin("test-junit5"))
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
tasks.withType<JavaCompile>().configureEach {
targetCompatibility = "8"
}
tasks.withType<Test>().configureEach {
if (JavaVersion.VERSION_1_8 > JavaVersion.current()) {
jvmArgs = listOf("-XX:MaxPermSize=256m")
}
testLogging {
events.addAll(listOf(TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED))
showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
}
useJUnitPlatform()
}