Skip to content

Commit b3b2e30

Browse files
committed
update: dependency
1 parent a7569e2 commit b3b2e30

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ repositories {
2828

2929
dependencies {
3030
api("com.zaxxer:HikariCP:5.1.0")
31-
api("com.h2database:h2:2.3.230")
32-
api("org.xerial:sqlite-jdbc:3.46.0.1")
31+
api("com.h2database:h2:2.3.232")
32+
api("org.xerial:sqlite-jdbc:3.46.1.0")
3333
api("com.mysql:mysql-connector-j:9.0.0")
3434
api("org.mariadb.jdbc:mariadb-java-client:3.4.1")
35-
api("org.postgresql:postgresql:42.7.3")
35+
api("org.postgresql:postgresql:42.7.4")
3636
api("org.reflections:reflections:0.10.2")
3737
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.4.4")
3838
testImplementation(kotlin("test"))
39-
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11")
39+
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11")
4040
//
4141
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
4242
compileOnly("net.mamoe:mirai-core")

example/h2.web.cmd

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ if exist "jdk-17.0.8+7" set JAVA_BINARY=".\jdk-17.0.8+7\bin\java.exe"
99
if exist "jdk-17.0.8+7-jre" set JAVA_BINARY=".\jdk-17.0.8+7-jre\bin\java.exe"
1010

1111
set H2_JAR="h2-2.2.222.jar"
12-
if exist ".\plugin-libraries\com\h2database\h2\2.1.222\h2-2.2.222.jar" set JAVA_BINARY=".\plugin-libraries\com\h2database\h2\2.1.222\h2-2.2.222.jar"
13-
if exist ".\plugin-libraries\com\h2database\h2\2.1.214\h2-2.1.214.jar" set JAVA_BINARY=".\plugin-libraries\com\h2database\h2\2.1.214\h2-2.1.214.jar"
12+
if exist ".\plugin-libraries\com\h2database\h2\2.1.214\h2-2.1.214.jar" set H2_JAR=".\plugin-libraries\com\h2database\h2\2.1.214\h2-2.1.214.jar"
13+
if exist ".\plugin-libraries\com\h2database\h2\2.2.222\h2-2.2.222.jar" set H2_JAR=".\plugin-libraries\com\h2database\h2\2.2.222\h2-2.2.222.jar"
14+
if exist ".\plugin-libraries\com\h2database\h2\2.2.224\h2-2.2.224.jar" set H2_JAR=".\plugin-libraries\com\h2database\h2\2.2.224\h2-2.2.224.jar"
15+
if exist ".\plugin-libraries\com\h2database\h2\2.3.230\h2-2.3.230.jar" set H2_JAR=".\plugin-libraries\com\h2database\h2\2.3.230\h2-2.3.230.jar"
16+
if exist ".\plugin-libraries\com\h2database\h2\2.3.232\h2-2.3.232.jar" set H2_JAR=".\plugin-libraries\com\h2database\h2\2.3.232\h2-2.3.232.jar"
1417

1518
%JAVA_BINARY% -version
1619
%JAVA_BINARY% -jar %H2_JAR% -url jdbc:h2:./data/xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin/hibernate.h2;AUTO_SERVER=TRUE %*

src/main/kotlin/xyz/cssxsh/mirai/hibernate/MiraiHibernateUtils.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ internal fun mssql(): String {
6060
val java = System.getProperty("java.version")
6161
// val version = System.getProperty("xyz.cssxsh.mirai.hibernate.mssql.version", "11.2.3")
6262
return when {
63-
java.startsWith("17") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
64-
java.startsWith("11") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
65-
java.startsWith("8") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre8"
63+
java.startsWith("17") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11"
64+
java.startsWith("11") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11"
65+
java.startsWith("8") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre8"
6666
else -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
6767
}
6868
}

0 commit comments

Comments
 (0)