From 759b9f4951270f35e98a14fa15c169ed8e564e3a Mon Sep 17 00:00:00 2001 From: Yongshun Ye Date: Thu, 18 Sep 2025 21:36:19 +0800 Subject: [PATCH] Try fixing Exposed import errors There are breaking changes. Bump the project version, try replacing `org.jetbrains.exposed.sql` with `org.jetbrains.exposed.v1.core` and revert, and add the Exposed `jdbc` module where `Query` is moved too. The complete guide is https://www.jetbrains.com/help/exposed/migration-guide-1-0-0.html. There seem to be too many things to migrate, so I shall leave this to another day and possibly to Copilot. --- buildSrc/src/main/kotlin/VersionsAndDependencies.kt | 2 +- exposed/build.gradle.kts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt index ad3ff67..5e4c8e0 100644 --- a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt +++ b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt @@ -2,7 +2,7 @@ import com.huanshankeji.CommonDependencies import com.huanshankeji.CommonGradleClasspathDependencies import com.huanshankeji.CommonVersions -val projectVersion = "0.6.2-SNAPSHOT" +val projectVersion = "0.7.0-SNAPSHOT" val commonVersions = CommonVersions(kotest = "5.9.1") // TODO Kotest 6 requires Java 11 val commonDependencies = CommonDependencies(commonVersions) diff --git a/exposed/build.gradle.kts b/exposed/build.gradle.kts index 1be3561..0ac50d5 100644 --- a/exposed/build.gradle.kts +++ b/exposed/build.gradle.kts @@ -8,5 +8,6 @@ dependencies { implementation(cpnProject(project, ":core")) // for the `@Untested` annotation implementation(commonDependencies.exposed.core()) + implementation(commonDependencies.exposed.module("jdbc")) testImplementation(kotlin("test")) }