From 001356abf2f5b8aeaaacf5cc535a5e149129ef75 Mon Sep 17 00:00:00 2001 From: htjulia Date: Tue, 27 Oct 2026 11:11:05 +0900 Subject: [PATCH] chore(deps): bump org.mybatis:mybatis from 3.5.19 to 3.6.0 Test scope only: MyBatis backs the two e2e tests that simulate a consumer bundling MyBatis on the host. Nothing ships in the published jar or POM. 3.6.0 requires Java 11 (toolchain is 21) and changes type handler resolution to use java.lang.reflect.Type, constructor auto-mapping, and validation. The tests use a plain resultType="int" count query, so none of these apply. It also fixes an ErrorContext ThreadLocal leak in lazy loading, which lines up with the classloader-reclaim test. mybatis-spring stays at 3.0.4 and works with 3.6.0 in these tests. Verified locally: bootJar then test, 599 tests, 0 failures, 0 skipped. Related: #87 Co-Authored-By: htjulia --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 63585be..6cdcc3f 100644 --- a/build.gradle +++ b/build.gradle @@ -193,7 +193,7 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' // Representative data-access stack e2e: simulates a consumer that bundles MyBatis on the host (decision B). // Only core+spring, not the starter → the module configures its own SqlSessionFactory without autoconfig pollution. - testImplementation 'org.mybatis:mybatis:3.5.19' + testImplementation 'org.mybatis:mybatis:3.6.0' testImplementation 'org.mybatis:mybatis-spring:3.0.4' // Faithfully verify GRANT isolation of DB scoped provisioning against a real engine (Docker required). testImplementation 'org.testcontainers:junit-jupiter'