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 eccdd2d commit 8ff5018
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 15 deletions.
11 changes: 11 additions & 0 deletions plugin/all/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

dependencies {
parent!!.childProjects.values.filter {
it.name.contains("platform")
}.forEach { implementation(it) }
}

tasks {
withType<ShadowJar> {
archiveVersion.set(rootVersion)
}
build {
dependsOn(shadowJar)
}
}
9 changes: 8 additions & 1 deletion plugin/platform-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

dependencies {
implementation(project(":project:runtime-bukkit"))
compileOnly("com.google.guava:guava:31.1-jre")

rootProject.allprojects.forEach {
if (it.parent?.name == "project" && !it.name.contains("bungee"))
implementation(it)
}

shadowTaboo("platform-bukkit")
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,9 @@ plugins {
id("io.izzel.taboolib") version taboolibPluginVersion
}

dependencies {

compileOnly("com.google.guava:guava:31.1-jre")

// rootProject.allprojects.forEach {
// if (it.parent?.name == "project" && !it.name.contains("bungee"))
// implementation(it)
// }
parent!!.childProjects.values.filter {
it.name.contains("module")
}.forEach { implementation(it) }
}

taboolib {
version = taboolibVersion
taboolibModules.forEach { install(it) }
install("platform-bukkit") //Bukkit

description {
name = rootName
Expand Down

0 comments on commit 8ff5018

Please sign in to comment.