mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
a5e84dcfea
- Closes #1204 - Switch to security advisory - Move fawe-tests to fawe packages
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
`java-library`
|
|
id("net.minecrell.plugin-yml.bukkit") version "0.4.0"
|
|
}
|
|
|
|
project.description = "CLI"
|
|
|
|
applyPlatformAndCoreConfiguration()
|
|
applyShadowConfiguration()
|
|
|
|
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
|
|
|
|
dependencies {
|
|
// Modules
|
|
api(projects.worldeditCore)
|
|
compileOnly(projects.worldeditLibs.core.ap)
|
|
annotationProcessor(projects.worldeditLibs.core.ap)
|
|
|
|
// Minecraft expectations
|
|
annotationProcessor(libs.guava)
|
|
implementation(libs.guava)
|
|
implementation(libs.gson)
|
|
|
|
// Logging
|
|
implementation(libs.log4jBom) {
|
|
because("We control Log4J on this platform")
|
|
}
|
|
implementation(libs.log4j)
|
|
implementation(libs.log4jCore
|
|
)
|
|
implementation("commons-cli:commons-cli:1.4")
|
|
}
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
dependencies {
|
|
include { true }
|
|
}
|
|
archiveFileName.set(moduleIdentifier)
|
|
minimize {
|
|
exclude(dependency("org.apache.logging.log4j:log4j-core"))
|
|
}
|
|
}
|
|
|
|
tasks.named("assemble").configure {
|
|
dependsOn("shadowJar")
|
|
}
|
|
|
|
val moduleIdentifier = "${rootProject.name}-${project.description}-${project.version}.jar"
|
|
val decoration = "\n****************************************"
|
|
val websiteURL = "https://www.spigotmc.org/resources/13932/"
|
|
|
|
bukkit {
|
|
name = "FastAsyncWorldEdit-COMMAND_LINE_INTERFACE_NOT_A_PLUGIN"
|
|
main = "com.sk89q.worldedit.cli.AccessPoint"
|
|
apiVersion = decoration +
|
|
"\n* 404 - Plugin Not Found.\n" +
|
|
"* You installed the command line interface (CLI) which is not a plugin.\n" +
|
|
"* Stop your server, delete `$moduleIdentifier`" +
|
|
" and download the proper one from:\n" +
|
|
"* $websiteURL\n" +
|
|
"* (contains `-Bukkit-` instead of `-CLI-` in the name ;)" +
|
|
decoration
|
|
version = rootProject.version.toString()
|
|
website = websiteURL
|
|
}
|