Show a message with install instructions when running the jar file

Co-Authored-By: Matthew Miller <mnmiller1@me.com>
This commit is contained in:
NotMyFault
2021-02-25 22:58:17 +01:00
parent bc686a611d
commit 0b65533294
9 changed files with 160 additions and 15 deletions

View File

@ -7,6 +7,8 @@ plugins {
applyPlatformAndCoreConfiguration()
applyShadowConfiguration()
addJarManifest(WorldEditKind.Standalone("com.sk89q.worldedit.cli.CLIWorldEdit"))
dependencies {
"api"(project(":worldedit-core"))
"implementation"(platform("org.apache.logging.log4j:log4j-bom:2.14.0"))
@ -17,15 +19,6 @@ dependencies {
"implementation"("com.google.code.gson:gson")
}
tasks.named<Jar>("jar") {
manifest {
attributes(
"Implementation-Version" to project.version,
"Main-Class" to "com.sk89q.worldedit.cli.CLIWorldEdit"
)
}
}
tasks.named<ShadowJar>("shadowJar") {
dependencies {
include { true }