Skip to content

Commit dacdc1b

Browse files
committed
2.0.20 调整一些模块的名字
1 parent 83be14d commit dacdc1b

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "io.izzel.taboolib"
11-
version = "2.0.19"
11+
version = "2.0.20"
1212

1313
configurations {
1414
create("embed") {

src/main/groovy/io/izzel/taboolib/gradle/TabooLibPlugin.groovy

-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class TabooLibPlugin implements Plugin<Project> {
4545
// 注册配置
4646
def taboo = project.configurations.maybeCreate('taboo') // 这个名字起的着实二逼
4747
def include = project.configurations.maybeCreate('include') // 这个代替 "taboo"
48-
def dynamic = project.configurations.maybeCreate('dynamic') // 这个还没做完
4948

5049
// 添加依赖以及重定向配置
5150
project.afterEvaluate {
@@ -59,9 +58,6 @@ class TabooLibPlugin implements Plugin<Project> {
5958
// 继承 "taboo", "include" 配置
6059
project.configurations.implementation.extendsFrom(taboo)
6160
project.configurations.implementation.extendsFrom(include)
62-
// 继承 "dynamic" 配置
63-
project.configurations.compileOnly.extendsFrom(dynamic)
64-
project.configurations.testImplementation.extendsFrom(dynamic)
6561

6662
// 自动引入 com.mojang:datafixerupper:4.0.26
6763
project.dependencies.add('compileOnly', 'com.mojang:datafixerupper:4.0.26')

src/main/kotlin/io/izzel/taboolib/gradle/ModuleName.kt

+17-17
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ val BukkitNMSUtil = arrayOf(
7979
"bukkit-nms-tag-12005",
8080
"bukkit-nms-tag-legacy",
8181
"bukkit-nms",
82-
*BukkitUtil,
83-
)
82+
) + BukkitUtil
8483

8584
/**
8685
* Bukkit NMS ItemTag 工具
@@ -120,50 +119,51 @@ val Database = arrayOf(
120119
/**
121120
* Alkaid Redis
122121
*/
123-
val DatabaseAlkaidRedis = arrayOf(
122+
val AlkaidRedis = arrayOf(
124123
"database-alkaid-redis",
125124
"basic-configuration",
126125
)
127126

128127
/**
129128
* IOC
130129
*/
131-
val DatabaseIoc = arrayOf(
130+
val IOC = arrayOf(
132131
"database-ioc",
133132
"basic-configuration",
134133
)
135134

135+
/**
136+
* ORM
137+
*/
138+
val ORM = arrayOf("database-orm") + Database
139+
136140
/**
137141
* Lettuce Redis
138142
*/
139-
val DatabaseLettuceRedis = arrayOf(
143+
val LettuceRedis = arrayOf(
140144
"database-lettuce-redis",
141145
"basic-configuration",
142146
)
143147

144148
/**
145149
* 玩家数据库
146150
*/
147-
val DatabasePlayer = arrayOf(
148-
"database-player",
149-
*Database
150-
)
151+
val DatabasePlayer = arrayOf("database-player") + Database
152+
153+
/**
154+
* 玩家 Redis 数据库
155+
*/
156+
val DatabasePlayerRedis = arrayOf("database-player-redis") + DatabasePlayer + AlkaidRedis
151157

152158
/**
153159
* Persistent Container
154160
*/
155-
val DatabasePtc = arrayOf(
156-
"database-ptc",
157-
*Database
158-
)
161+
val Ptc = arrayOf("database-ptc") + Database
159162

160163
/**
161164
* Persistent Container With Object
162165
*/
163-
val DatabasePtcObject = arrayOf(
164-
"database-ptc-object",
165-
*Database
166-
)
166+
val PtcObject = arrayOf("database-ptc-object") + Database
167167

168168
/**
169169
* Minecraft 文本工具

0 commit comments

Comments
 (0)