Skip to content

Commit

Permalink
update: dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Apr 17, 2024
1 parent 7e78dad commit a884146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies {
api("org.reflections:reflections:0.10.2")
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.4.0")
testImplementation(kotlin("test"))
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.7.0")
testImplementation("com.microsoft.sqlserver:mssql-jdbc:12.6.1.jre11")
//
implementation(platform("net.mamoe:mirai-bom:2.16.0"))
compileOnly("net.mamoe:mirai-core")
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.7.0.jre11-preview"
java.startsWith("11") -> "com.microsoft.sqlserver:mssql-jdbc:12.7.0.jre11-preview"
java.startsWith("8") -> "com.microsoft.sqlserver:mssql-jdbc:12.7.0.jre8-preview"
else -> "com.microsoft.sqlserver:mssql-jdbc:12.7.0"
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"
}
}

Expand Down

0 comments on commit a884146

Please sign in to comment.