import org.gradle.api.tasks.testing.logging.* import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.* plugins { kotlin("jvm") alias(libs.plugins.dokka) } repositories { mavenCentral() } kotlin { jvmToolchain(17) } dependencies { api(project(":exposed-core")) api(project(":exposed-jdbc")) api(libs.spring.jdbc) api(libs.spring.context) implementation(libs.kotlinx.coroutines) testImplementation(project(":exposed-dao")) testImplementation(project(":exposed-tests")) testImplementation(kotlin("test")) testImplementation(libs.junit6) testRuntimeOnly(libs.junit.platform.launcher) testImplementation(libs.kotlinx.coroutines.debug) testImplementation(libs.spring.test) testImplementation(libs.slf4j) testImplementation(libs.log4j.slf4j.impl) testImplementation(libs.log4j.api) testImplementation(libs.log4j.core) testImplementation(libs.h2) } tasks.withType().configureEach { compilerOptions { jvmTarget.set(JvmTarget.JVM_17) } } 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() }