Skip to content

Commit 81dc9a2

Browse files
committed
2.0.16 测试版本
1 parent 9019076 commit 81dc9a2

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
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.15"
11+
version = "2.0.16"
1212

1313
configurations {
1414
create("embed") {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class TabooLibMainTask extends DefaultTask {
132132
def modules = new HashSet<String>(tabooExt.env.modules)
133133
// 平台实现
134134
Platforms.values().each { p ->
135-
if (p.module in modules) {
135+
if (p.module in modules && p.hasImpl) {
136136
modules += p.module + "-impl"
137137
}
138138
}

src/main/groovy/io/izzel/taboolib/gradle/description/Platforms.groovy

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,27 @@ enum Platforms {
1616

1717
SPONGE8('Sponge8', 'platform-sponge-api8', 'META-INF/plugins.json', new BuilderSponge8()),
1818

19-
AFYBROKER("AfyBroker","platform-afybroker","broker.yml",new BuilderAfyBroker());
19+
AFYBROKER("AfyBroker", "platform-afybroker", "broker.yml", new BuilderAfyBroker(), false);
2020

2121
String key
2222
String module
2323
String file
2424
Builder builder
25+
boolean hasImpl
2526

2627
Platforms(key, module, file, builder) {
2728
this.key = key
2829
this.module = module
2930
this.file = file
3031
this.builder = builder
32+
this.hasImpl = true
33+
}
34+
35+
Platforms(String key, String module, String file, Builder builder, boolean hasImpl) {
36+
this.key = key
37+
this.module = module
38+
this.file = file
39+
this.builder = builder
40+
this.hasImpl = hasImpl
3141
}
3242
}

0 commit comments

Comments
 (0)