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) compilerOptions { optIn.add("kotlin.time.ExperimentalTime") } } 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().configureEach { compilerOptions { jvmTarget.set(JvmTarget.JVM_1_8) } } tasks.withType().configureEach { targetCompatibility = "8" } tasks.withType().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() }