Skip to content

Commit 68d723f

Browse files
committed
2.0.26 新增一个配置
1 parent 746e437 commit 68d723f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "io.izzel.taboolib"
11-
version = "2.0.25"
11+
version = "2.0.26"
1212

1313
configurations {
1414
create("embed") {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class Env {
3030
/** 非开发者模式下是否在不支持版本上关闭插件 */
3131
boolean disableOnUnsupportedVersion = true
3232

33+
/** 在原始加载器初始化失败时是否强制关闭服务器 */
34+
boolean disableWhenPrimitiveLoaderError = false
35+
3336
/** 安装模块 */
3437
Set<String> modules = ["common", "common-env", "common-util", "common-legacy-api", "common-platform-api", "common-reflex"]
3538

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class TabooLibMainTask extends DefaultTask {
151151
"enable-isolated-classloader=" + tabooExt.env.enableIsolatedClassloader,
152152
"disable-on-skipped-version=" + tabooExt.env.disableOnSkippedVersion,
153153
"disable-on-unsupported-version=" + tabooExt.env.disableOnUnsupportedVersion,
154+
"disable-when-primitive-loader-error=" + tabooExt.env.disableWhenPrimitiveLoaderError,
154155
"module=" + modules.join(',')
155156
])
156157
return file.join('\n').getBytes(StandardCharsets.UTF_8)

0 commit comments

Comments
 (0)