Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove text adapter Debugging the bugs out
- Loading branch information
1 parent
512a07e
commit b1cb8d1
Showing
63 changed files
with
1,930 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ repositories { | |
} | ||
} | ||
dependencies { | ||
"shade"("net.kyori:text-adapter-spongeapi:${Versions.TEXT_EXTRAS}") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,77 @@ | ||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
import org.spongepowered.gradle.plugin.config.PluginLoaders | ||
import org.spongepowered.plugin.metadata.PluginDependency | ||
|
||
plugins { | ||
id("org.spongepowered.gradle.plugin") | ||
id("org.spongepowered.gradle.vanilla") | ||
} | ||
|
||
applyPlatformAndCoreConfiguration() | ||
applyShadowConfiguration() | ||
|
||
// I can't believe sponge sets this in a base plugin with no opt-out | ||
convention.getPlugin(JavaPluginConvention::class.java).apply { | ||
setSourceCompatibility(null) | ||
setTargetCompatibility(null) | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
repositories { | ||
maven { url = uri("https://repo.codemc.org/repository/maven-public") } | ||
minecraft { | ||
version("1.16.5") | ||
} | ||
|
||
sponge { | ||
apiVersion("8.0.0") | ||
plugin("worldedit") { | ||
loader(PluginLoaders.JAVA_PLAIN) | ||
displayName("WorldEdit") | ||
version(project.ext["internalVersion"].toString()) | ||
mainClass("com.sk89q.worldedit.sponge.SpongeWorldEdit") | ||
description("WorldEdit is an easy-to-use in-game world editor for Minecraft, supporting both single- and multi-player.") | ||
links { | ||
homepage("https://enginehub.org/worldedit/") | ||
source("https://github.com/EngineHub/WorldEdit") | ||
issues("https://github.com/EngineHub/WorldEdit/issues") | ||
} | ||
contributor("EngineHub") { | ||
description("Various members of the EngineHub team") | ||
} | ||
dependency("spongeapi") { | ||
loadOrder(PluginDependency.LoadOrder.AFTER) | ||
optional(false) | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
api(project(":worldedit-core")) | ||
api(project(":worldedit-libs:sponge")) | ||
api("org.spongepowered:spongeapi:7.1.0") { | ||
api("org.spongepowered:spongeapi:8.0.0-SNAPSHOT") { | ||
exclude(group = "org.slf4j", module = "slf4j-api") | ||
} | ||
implementation(platform("org.apache.logging.log4j:log4j-bom:${Versions.LOG4J}") { | ||
because("Sponge 8 (will?) provides Log4J") | ||
}) | ||
api("org.apache.logging.log4j:log4j-api") | ||
api("org.bstats:bstats-sponge:1.7") | ||
testImplementation("org.mockito:mockito-core:1.9.0-rc1") | ||
// bStats isn't updated yet :( | ||
// api("org.bstats:bstats-sponge:2.2.1") | ||
testImplementation("org.mockito:mockito-core:${Versions.MOCKITO}") | ||
} | ||
|
||
addJarManifest(WorldEditKind.Mod, includeClasspath = true) | ||
|
||
tasks.named<ShadowJar>("shadowJar") { | ||
dependencies { | ||
relocate ("org.bstats", "com.sk89q.worldedit.sponge.bstats") { | ||
include(dependency("org.bstats:bstats-sponge:1.7")) | ||
relocate("org.bstats", "com.sk89q.worldedit.sponge.bstats") { | ||
include(dependency("org.bstats:bstats-sponge")) | ||
} | ||
} | ||
} | ||
include(dependency(":worldedit-core")) | ||
|
||
if (project.hasProperty("signing")) { | ||
apply(plugin = "signing") | ||
|
||
configure<SigningExtension> { | ||
sign("shadowJar") | ||
} | ||
|
||
tasks.named("build").configure { | ||
dependsOn("signShadowJar") | ||
relocate("org.antlr.v4", "com.sk89q.worldedit.sponge.antlr4") | ||
include(dependency("org.antlr:antlr4-runtime")) | ||
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.sponge.fastutil") { | ||
include(dependency("it.unimi.dsi:fastutil")) | ||
} | ||
} | ||
} | ||
tasks.named("assemble").configure { | ||
dependsOn("shadowJar") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.