Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复extension测试时依赖缺失的问题 #6533

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mybatis-plus-extension/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'kotlin'

compileKotlin{
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}

Expand All @@ -23,4 +23,7 @@ dependencies {
testImplementation "${lib.h2}"
testImplementation "${lib.mysql}"
testImplementation "${lib.'logback-classic'}"
testImplementation "${lib."mybatis-spring"}"
testImplementation "${lib."spring-context-support"}"
testImplementation "${lib."spring-jdbc"}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils
import com.baomidou.mybatisplus.core.toolkit.ExceptionUtils
import com.baomidou.mybatisplus.core.toolkit.GlobalConfigUtils
import com.baomidou.mybatisplus.core.toolkit.StringUtils
import com.baomidou.mybatisplus.extension.toolkit.SqlRunner
import org.apache.ibatis.io.Resources
import org.apache.ibatis.logging.slf4j.Slf4jImpl
import org.apache.ibatis.mapping.Environment
Expand Down Expand Up @@ -36,7 +35,6 @@ abstract class BaseDbTest<T> : TypeReference<T>() {
protected var jdbcTemplate: JdbcTemplate

init {
SqlRunner.DEFAULT.close()
val ds = dataSource()
val tableSql = tableSql()
val tableDataSql = tableDataSql()
Expand Down