Skip to content

Commit

Permalink
build: 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 4, 2022
1 parent 06115f6 commit 07ff588
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ run/
!gradle-wrapper.jar

# Local Test Launch point
src/test/kotlin/RunTerminal.kt
debug-sandbox
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
本插件打包了以下版本的数据库驱动和连接池

* `mysql:mysql-connector-java:8.0.29`
* `org.xerial:sqlite-jdbc:3.36.0.3`
* `org.postgresql:postgresql:42.4.0`
* `com.h2database:h2:2.1.214`
* `com.zaxxer:HikariCP:5.0.1`

需要其他数据库驱动支持请将 **数据库驱动Jar包** 放到 `plugin-shared-libraries` 目录中一同被 `mirai-console` 加载
需要其他数据库驱动或连接池支持,请添加 `plugin-shared-libraries` 依赖,有两种方法
1.**Jar包** 放到 `plugin-shared-libraries` 目录中一同被 `mirai-console` 加载
2.`plugin-shared-libraries/libraries.txt` 中添加 maven 引用,例如 `com.microsoft.sqlserver:mssql-jdbc:10.2.1.jre11`

## 在 Mirai Console Plugin 项目中引用

Expand Down
12 changes: 7 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ plugins {
kotlin("plugin.serialization") version "1.6.21"
kotlin("plugin.jpa") version "1.6.21"

id("net.mamoe.mirai-console") version "2.12.0-RC"
id("net.mamoe.mirai-console") version "2.12.0"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

group = "xyz.cssxsh.mirai"
version = "2.3.0"
version = "2.3.1"

mavenCentralPublish {
useCentralS01()
Expand All @@ -27,12 +27,14 @@ repositories {

dependencies {
compileOnly("net.mamoe:mirai-slf4j-bridge:1.2.0")
compileOnly("net.mamoe:mirai-core:2.12.0-RC")
compileOnly("net.mamoe:mirai-core-utils:2.12.0-RC")
compileOnly("net.mamoe:mirai-core:2.12.0")
compileOnly("net.mamoe:mirai-core-utils:2.12.0")
compileOnly("xyz.cssxsh.mirai:mirai-administrator:1.2.0")
// SQL/ORM
api("org.hibernate.orm:hibernate-core:6.1.1.Final")
api("org.hibernate.orm:hibernate-hikaricp:6.1.1.Final")
api("org.hibernate.orm:hibernate-hikaricp:6.1.1.Final") {
exclude("org.slf4j")
}
api("org.hibernate.orm:hibernate-community-dialects:6.1.1.Final")
api("com.zaxxer:HikariCP:5.0.1") {
exclude("org.slf4j")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public object MiraiHibernatePlugin : KotlinPlugin(
JvmPluginDescription(
id = "xyz.cssxsh.mirai.plugin.mirai-hibernate-plugin",
name = "mirai-hibernate-plugin",
version = "2.3.0",
version = "2.3.1",
) {
author("cssxsh")

Expand Down

0 comments on commit 07ff588

Please sign in to comment.