diff --git a/build.gradle.kts b/build.gradle.kts index e3ab713..2ef22db 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "io.izzel.taboolib" -version = "2.0.15" +version = "2.0.16" configurations { create("embed") { diff --git a/src/main/groovy/io/izzel/taboolib/gradle/TabooLibMainTask.groovy b/src/main/groovy/io/izzel/taboolib/gradle/TabooLibMainTask.groovy index 7b92d6b..272d7e9 100644 --- a/src/main/groovy/io/izzel/taboolib/gradle/TabooLibMainTask.groovy +++ b/src/main/groovy/io/izzel/taboolib/gradle/TabooLibMainTask.groovy @@ -132,7 +132,7 @@ class TabooLibMainTask extends DefaultTask { def modules = new HashSet(tabooExt.env.modules) // 平台实现 Platforms.values().each { p -> - if (p.module in modules) { + if (p.module in modules && p.hasImpl) { modules += p.module + "-impl" } } diff --git a/src/main/groovy/io/izzel/taboolib/gradle/description/Platforms.groovy b/src/main/groovy/io/izzel/taboolib/gradle/description/Platforms.groovy index 33c4e3a..385aefa 100644 --- a/src/main/groovy/io/izzel/taboolib/gradle/description/Platforms.groovy +++ b/src/main/groovy/io/izzel/taboolib/gradle/description/Platforms.groovy @@ -16,17 +16,27 @@ enum Platforms { SPONGE8('Sponge8', 'platform-sponge-api8', 'META-INF/plugins.json', new BuilderSponge8()), - AFYBROKER("AfyBroker","platform-afybroker","broker.yml",new BuilderAfyBroker()); + AFYBROKER("AfyBroker", "platform-afybroker", "broker.yml", new BuilderAfyBroker(), false); String key String module String file Builder builder + boolean hasImpl Platforms(key, module, file, builder) { this.key = key this.module = module this.file = file this.builder = builder + this.hasImpl = true + } + + Platforms(String key, String module, String file, Builder builder, boolean hasImpl) { + this.key = key + this.module = module + this.file = file + this.builder = builder + this.hasImpl = hasImpl } } \ No newline at end of file