Skip to content

Commit

Permalink
update: dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Aug 10, 2024
1 parent 2f224d2 commit 628025b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ repositories {

dependencies {
api("com.zaxxer:HikariCP:5.1.0")
api("com.h2database:h2:2.2.224")
api("org.xerial:sqlite-jdbc:3.45.3.0")
api("com.mysql:mysql-connector-j:8.3.0")
api("org.mariadb.jdbc:mariadb-java-client:3.3.3")
api("com.h2database:h2:2.3.230")
api("org.xerial:sqlite-jdbc:3.46.0.1")
api("com.mysql:mysql-connector-j:9.0.0")
api("org.mariadb.jdbc:mariadb-java-client:3.4.1")
api("org.postgresql:postgresql:42.7.3")
api("org.reflections:reflections:0.10.2")
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.4.0")
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.4.3")
testImplementation(kotlin("test"))
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre11")
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11")
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
compileOnly("net.mamoe:mirai-core")
Expand All @@ -46,12 +46,12 @@ dependencies {
testImplementation("net.mamoe:mirai-core-utils")
testImplementation("net.mamoe:mirai-console-compiler-common")
//
implementation(platform("org.hibernate.orm:hibernate-platform:6.4.8.Final"))
implementation(platform("org.hibernate.orm:hibernate-platform:6.6.0.Final"))
api("org.hibernate.orm:hibernate-core")
api("org.hibernate.orm:hibernate-hikaricp")
api("org.hibernate.orm:hibernate-community-dialects")
//
implementation(platform("org.slf4j:slf4j-parent:2.0.13"))
implementation(platform("org.slf4j:slf4j-parent:2.0.15"))
testImplementation("org.slf4j:slf4j-simple")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ internal fun mssql(): String {
val java = System.getProperty("java.version")
// val version = System.getProperty("xyz.cssxsh.mirai.hibernate.mssql.version", "11.2.3")
return when {
java.startsWith("17") -> "com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre11"
java.startsWith("11") -> "com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre11"
java.startsWith("8") -> "com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre8"
else -> "com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre11"
java.startsWith("17") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
java.startsWith("11") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
java.startsWith("8") -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre8"
else -> "com.microsoft.sqlserver:mssql-jdbc:12.8.0.jre11"
}
}

Expand Down

0 comments on commit 628025b

Please sign in to comment.