Skip to content

Commit

Permalink
框架更新
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFloodDragon committed Jun 30, 2023
1 parent ff49c8f commit ae4bdbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/CompiledOutputer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ fun Project.output() {
rootProject
.childProjects["plugin"]!!.childProjects.values
.forEach {
val target = "$rootName-${it.name.split('-')[1].capitalized()}.jar"
val platformStr =
if (it.name.equals("all")) "" else "-${it.name.split('-')[1].capitalized()}"
it.outCopy(
File(outDir, target)
File(outDir, "$rootName$platformStr-${it.version}.jar")
)
}
}
Expand Down
9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
rootProject.name = "FDUtilities"

//Bukkit实现
include("plugin:platform-bukkit")
include("plugin:all")

//所有字项目的加载(懒得自己一个一个打)
File("${rootDir}\\project").listFiles()?.filter { it.isDirectory }?.forEach {
include("project:${it.name}")
}

//Bukkit实现
include("plugin:platform-bukkit")
//全部聚合版
include("plugin:all")


//包含所有模块 TODO 应该重命名为脚本系统(FScript-抽象)
//File("${rootDir}\\module").listFiles()?.filter { it.isDirectory }?.forEach {
Expand Down

0 comments on commit ae4bdbe

Please sign in to comment.