Skip to content

Commit

Permalink
Bump MockSkript (Skript 2.9.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
GliczDev committed Jul 29, 2024
1 parent 28b08bb commit 6233414
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion MockSkript
Submodule MockSkript updated 269 files
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private CommandData handleCommand(StructCommand command, ScriptCommand scriptCom
StringUtils.defaultIfEmpty(scriptCommand.permission, null),
StringUtils.defaultIfEmpty(scriptCommand.description, null),
scriptCommand.getPrefix(),
StringUtils.defaultIfEmpty(scriptCommand.usage, null),
StringUtils.defaultIfEmpty(scriptCommand.usage.getUsage(), null),
scriptCommand.getArguments().stream()
.map(argument -> argument.type.getCodeName())
.toList()
Expand Down
15 changes: 8 additions & 7 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ java {
tasks {
jar {
listOf(project(":MockSkript"), project(":MockSkriptBridge")).forEach { addon ->
dependsOn(addon.tasks.clean)
val jarTask: DefaultTask =
addon.tasks.findByName("shadowJar") as DefaultTask? ?: addon.tasks.jar.get()
dependsOn(jarTask)
from(jarTask.outputs.files.singleFile) {
include("*.jar")
rename { "${addon.name}.jar.embedded" }
addon.tasks.apply {
dependsOn(clean)
dependsOn(jar)

from(jar.get().outputs.files.singleFile) {
include("*.jar")
rename { "${addon.name}.jar.embedded" }
}
}
}
}
Expand Down

0 comments on commit 6233414

Please sign in to comment.