mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
cleanup build script
This commit is contained in:
parent
2da3367f3d
commit
08dead5a86
85
build.gradle
85
build.gradle
@ -20,13 +20,13 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'net.minecrell.licenser' version '0.4.1' apply false
|
|
||||||
id "org.ajoberstar.grgit" version "3.1.1"
|
id "org.ajoberstar.grgit" version "3.1.1"
|
||||||
|
id "com.github.johnrengelman.shadow" version "5.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
println """
|
println """
|
||||||
*******************************************
|
*******************************************
|
||||||
You are building WorldEdit!
|
You are building FastAsyncWorldEdit!
|
||||||
|
|
||||||
If you encounter trouble:
|
If you encounter trouble:
|
||||||
1) Read COMPILING.md if you haven't yet
|
1) Read COMPILING.md if you haven't yet
|
||||||
@ -142,45 +142,44 @@ configure(['worldedit-core', 'worldedit-bukkit', 'favs'].collect { project("$it"
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'org.jetbrains:annotations:17.0.0'
|
compileOnly 'org.jetbrains:annotations:17.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(['bukkit'].collect { project(":worldedit-$it") }) {
|
|
||||||
shadowJar {
|
|
||||||
classifier 'dist'
|
|
||||||
dependencies {
|
|
||||||
include(project(":worldedit-libs:core"))
|
|
||||||
include(project(":worldedit-libs:${project.name.replace("worldedit-", "")}"))
|
|
||||||
include(project(":worldedit-core"))
|
|
||||||
include(dependency('com.github.luben:zstd-jni:1.1.1'))
|
|
||||||
include(dependency('co.aikar:fastutil-lite:1.0'))
|
|
||||||
}
|
|
||||||
exclude 'GradleStart**'
|
|
||||||
exclude '.cache'
|
|
||||||
exclude 'LICENSE*'
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enable this requires putting license header files in many, many FAWE files
|
|
||||||
//license {
|
|
||||||
// header = rootProject.file("HEADER.txt")
|
|
||||||
// include '**/*.java'
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all child projects as if it was a single project', group: 'Documentation') {
|
|
||||||
destinationDir = file("./docs/javadoc")
|
|
||||||
title = "$project.name $version API"
|
|
||||||
options.author true
|
|
||||||
options.links 'http://docs.spring.io/spring/docs/4.3.x/javadoc-api/', 'http://docs.oracle.com/javase/8/docs/api/', 'http://docs.spring.io/spring-ws/docs/2.3.0.RELEASE/api/', 'http://docs.spring.io/spring-security/site/docs/4.0.4.RELEASE/apidocs/'
|
|
||||||
options.addStringOption('Xdoclint:none', '-quiet')
|
|
||||||
|
|
||||||
delete "./docs"
|
|
||||||
|
|
||||||
subprojects.each { proj ->
|
|
||||||
proj.tasks.withType(Javadoc).each { javadocTask ->
|
|
||||||
source += javadocTask.source
|
|
||||||
classpath += javadocTask.classpath
|
|
||||||
excludes += javadocTask.excludes
|
|
||||||
includes += javadocTask.includes
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure(['bukkit'].collect { project(":worldedit-$it") }) {
|
||||||
|
shadowJar {
|
||||||
|
getArchiveClassifier().set('dist')
|
||||||
|
dependencies {
|
||||||
|
include(project(":worldedit-libs:core"))
|
||||||
|
include(project(":worldedit-libs:${project.name.replace("worldedit-", "")}"))
|
||||||
|
include(project(":worldedit-core"))
|
||||||
|
include(dependency('com.github.luben:zstd-jni:1.1.1'))
|
||||||
|
include(dependency('co.aikar:fastutil-lite:1.0'))
|
||||||
|
}
|
||||||
|
exclude 'GradleStart**'
|
||||||
|
exclude '.cache'
|
||||||
|
exclude 'LICENSE*'
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable this requires putting license header files in many, many FAWE files
|
||||||
|
//license {
|
||||||
|
// header = rootProject.file("HEADER.txt")
|
||||||
|
// include '**/*.java'
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all child projects as if it was a single project', group: 'Documentation') {
|
||||||
|
destinationDir = file("./docs/javadoc")
|
||||||
|
title = "$project.name $version API"
|
||||||
|
options.author true
|
||||||
|
options.links 'http://docs.spring.io/spring/docs/4.3.x/javadoc-api/', 'http://docs.oracle.com/javase/8/docs/api/', 'http://docs.spring.io/spring-ws/docs/2.3.0.RELEASE/api/', 'http://docs.spring.io/spring-security/site/docs/4.0.4.RELEASE/apidocs/'
|
||||||
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
|
|
||||||
|
delete "./docs"
|
||||||
|
|
||||||
|
subprojects.each { proj ->
|
||||||
|
proj.tasks.withType(Javadoc).each { javadocTask ->
|
||||||
|
source += javadocTask.source
|
||||||
|
classpath += javadocTask.classpath
|
||||||
|
excludes += javadocTask.excludes
|
||||||
|
includes += javadocTask.includes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
|||||||
#Mon Mar 25 18:59:14 EDT 2019
|
#Mon Mar 25 18:59:14 EDT 2019
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -2,7 +2,7 @@ rootProject.name = 'FastAsyncWorldEdit'
|
|||||||
|
|
||||||
include 'worldedit-libs'
|
include 'worldedit-libs'
|
||||||
|
|
||||||
['bukkit', 'core'].forEach {
|
['core', 'bukkit'].forEach {
|
||||||
include "worldedit-libs:$it"
|
include "worldedit-libs:$it"
|
||||||
include "worldedit-$it"
|
include "worldedit-$it"
|
||||||
}
|
}
|
||||||
|
@ -18,25 +18,25 @@ configurations.all { Configuration it ->
|
|||||||
dependencies {
|
dependencies {
|
||||||
api project(':worldedit-core')
|
api project(':worldedit-core')
|
||||||
api project(':worldedit-libs:bukkit')
|
api project(':worldedit-libs:bukkit')
|
||||||
compile 'net.milkbowl.vault:VaultAPI:1.7'
|
compileOnly 'net.milkbowl.vault:VaultAPI:1.7'
|
||||||
compile 'com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT'
|
compileOnly 'com.destroystokyo.paper:paper-api:1.13.2-R0.1-SNAPSHOT'
|
||||||
implementation 'io.papermc:paperlib:1.0.2'
|
implementation 'io.papermc:paperlib:1.0.2'
|
||||||
compileOnly 'com.sk89q:dummypermscompat:1.10'
|
compileOnly 'com.sk89q:dummypermscompat:1.10'
|
||||||
compile 'org.spigotmc:spigot:1.13.2-R0.1-SNAPSHOT'
|
compileOnly 'org.spigotmc:spigot:1.13.2-R0.1-SNAPSHOT'
|
||||||
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.8.1'
|
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.8.1'
|
||||||
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
||||||
compile 'com.massivecraft:factions:2.8.0'
|
compileOnly 'com.massivecraft:factions:2.8.0'
|
||||||
compile 'com.drtshock:factions:1.6.9.5'
|
compileOnly 'com.drtshock:factions:1.6.9.5'
|
||||||
compile 'com.factionsone:FactionsOne:1.2.2'
|
compileOnly 'com.factionsone:FactionsOne:1.2.2'
|
||||||
compile 'me.ryanhamshire:GriefPrevention:11.5.2'
|
compileOnly 'me.ryanhamshire:GriefPrevention:11.5.2'
|
||||||
compile 'com.massivecraft:mcore:7.0.1'
|
compileOnly 'com.massivecraft:mcore:7.0.1'
|
||||||
compile 'net.sacredlabyrinth.Phaed:PreciousStones:10.0.4-SNAPSHOT'
|
compileOnly 'net.sacredlabyrinth.Phaed:PreciousStones:10.0.4-SNAPSHOT'
|
||||||
compile 'net.jzx7:regios:5.9.9'
|
compileOnly 'net.jzx7:regios:5.9.9'
|
||||||
compile 'com.bekvon.bukkit.residence:Residence:4.5._13.1'
|
compileOnly 'com.bekvon.bukkit.residence:Residence:4.5._13.1'
|
||||||
compile 'com.palmergames.bukkit:towny:0.84.0.9'
|
compileOnly 'com.palmergames.bukkit:towny:0.84.0.9'
|
||||||
compile 'com.thevoxelbox.voxelsniper:voxelsniper:5.171.0'
|
compileOnly 'com.thevoxelbox.voxelsniper:voxelsniper:5.171.0'
|
||||||
compile 'com.comphenix.protocol:ProtocolLib-API:4.4.0-SNAPSHOT'
|
compileOnly 'com.comphenix.protocol:ProtocolLib-API:4.4.0-SNAPSHOT'
|
||||||
compile 'com.wasteofplastic:askyblock:3.0.8.2'
|
compileOnly 'com.wasteofplastic:askyblock:3.0.8.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
@ -55,27 +55,29 @@ processResources {
|
|||||||
|
|
||||||
jar.archiveName="fawe-bukkit-${project.parent.version}.jar"
|
jar.archiveName="fawe-bukkit-${project.parent.version}.jar"
|
||||||
jar.destinationDir = file '../mvn/com/boydti/fawe-bukkit/' + project.parent.version
|
jar.destinationDir = file '../mvn/com/boydti/fawe-bukkit/' + project.parent.version
|
||||||
task createPom << {
|
task createPom {
|
||||||
pom {
|
doLast {
|
||||||
project {
|
pom {
|
||||||
groupId 'com.boydti'
|
project {
|
||||||
artifactId 'fawe-bukkit'
|
groupId 'com.boydti'
|
||||||
version project.parent.version
|
artifactId 'fawe-bukkit'
|
||||||
|
version project.parent.version
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.getEffectivePom()
|
||||||
.getEffectivePom()
|
.setDependencies(new ArrayList<>())
|
||||||
.setDependencies(new ArrayList<>())
|
.writeTo("../mvn/com/boydti/fawe-bukkit/${project.parent.version}/fawe-bukkit-${project.parent.version}.pom")
|
||||||
.writeTo("../mvn/com/boydti/fawe-bukkit/${project.parent.version}/fawe-bukkit-${project.parent.version}.pom")
|
pom {
|
||||||
pom {
|
project {
|
||||||
project {
|
groupId 'com.boydti'
|
||||||
groupId 'com.boydti'
|
artifactId 'fawe-bukkit'
|
||||||
artifactId 'fawe-bukkit'
|
version 'latest'
|
||||||
version 'latest'
|
}
|
||||||
}
|
}
|
||||||
|
.getEffectivePom()
|
||||||
|
.setDependencies(new ArrayList<>())
|
||||||
|
.writeTo("../mvn/com/boydti/fawe-bukkit/latest/fawe-bukkit-latest.pom")
|
||||||
}
|
}
|
||||||
.getEffectivePom()
|
|
||||||
.setDependencies(new ArrayList<>())
|
|
||||||
.writeTo("../mvn/com/boydti/fawe-bukkit/latest/fawe-bukkit-latest.pom")
|
|
||||||
}
|
}
|
||||||
task copyFiles {
|
task copyFiles {
|
||||||
doLast {
|
doLast {
|
||||||
@ -87,22 +89,5 @@ task copyFiles {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
|
||||||
dependencies {
|
|
||||||
relocate "org.slf4j", "com.sk89q.worldedit.slf4j"
|
|
||||||
relocate "org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge"
|
|
||||||
include(dependency(':worldedit-core'))
|
|
||||||
include(dependency('org.slf4j:slf4j-api'))
|
|
||||||
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
|
||||||
relocate ("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
|
||||||
include(dependency("io.papermc:paperlib:1.0.2"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
archiveName = "${parent.name}-${project.name.replaceAll("worldedit-", "")}-${parent.version}.jar"
|
|
||||||
destinationDir = file '../target'
|
|
||||||
}
|
|
||||||
|
|
||||||
build.dependsOn(shadowJar)
|
|
||||||
build.finalizedBy(copyFiles)
|
build.finalizedBy(copyFiles)
|
||||||
copyFiles.dependsOn(createPom)
|
copyFiles.dependsOn(createPom)
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
apply plugin: 'java-library'
|
plugins {
|
||||||
apply plugin: 'eclipse'
|
id("java-library")
|
||||||
apply plugin: 'idea'
|
id("eclipse")
|
||||||
|
id("idea")
|
||||||
|
id("net.ltgt.apt") version "0.21" apply false
|
||||||
|
id "net.ltgt.apt-eclipse" version "0.21"
|
||||||
|
id "net.ltgt.apt-idea" version "0.21"
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {url "http://ci.athion.net/job/PlotSquared-Breaking/ws/mvn/"}
|
maven {url "http://ci.athion.net/job/PlotSquared-Breaking/ws/mvn/"}
|
||||||
}
|
}
|
||||||
@ -33,8 +39,8 @@ dependencies {
|
|||||||
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
testCompile 'org.mockito:mockito-core:1.9.0-rc1'
|
||||||
|
|
||||||
// Fawe depends
|
// Fawe depends
|
||||||
compile 'net.fabiozumbi12:redprotect:1.9.6'
|
compileOnly 'net.fabiozumbi12:redprotect:1.9.6'
|
||||||
compile ("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
|
compileOnly ("com.github.intellectualsites.plotsquared:PlotSquared-API:latest") {
|
||||||
transitive = false
|
transitive = false
|
||||||
}
|
}
|
||||||
compile 'com.mojang:datafixerupper:1.0.20'
|
compile 'com.mojang:datafixerupper:1.0.20'
|
||||||
@ -43,6 +49,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
|
dependsOn(":worldedit-libs:build")
|
||||||
it.options.compilerArgs.add("-Aarg.name.key.prefix=")
|
it.options.compilerArgs.add("-Aarg.name.key.prefix=")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,27 +79,29 @@ processResources {
|
|||||||
|
|
||||||
jar.archiveName="fawe-api-${project.parent.version}.jar"
|
jar.archiveName="fawe-api-${project.parent.version}.jar"
|
||||||
jar.destinationDir = file '../mvn/com/boydti/fawe-api/' + project.parent.version
|
jar.destinationDir = file '../mvn/com/boydti/fawe-api/' + project.parent.version
|
||||||
task createPom << {
|
task createPom {
|
||||||
pom {
|
doLast {
|
||||||
project {
|
pom {
|
||||||
groupId 'com.boydti'
|
project {
|
||||||
artifactId 'fawe-api'
|
groupId 'com.boydti'
|
||||||
version project.parent.version
|
artifactId 'fawe-api'
|
||||||
|
version project.parent.version
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
.getEffectivePom()
|
||||||
.getEffectivePom()
|
.setDependencies(new ArrayList<>())
|
||||||
.setDependencies(new ArrayList<>())
|
.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
|
||||||
.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
|
pom {
|
||||||
pom {
|
project {
|
||||||
project {
|
groupId 'com.boydti'
|
||||||
groupId 'com.boydti'
|
artifactId 'fawe-api'
|
||||||
artifactId 'fawe-api'
|
version 'latest'
|
||||||
version 'latest'
|
}
|
||||||
}
|
}
|
||||||
|
.getEffectivePom()
|
||||||
|
.setDependencies(new ArrayList<>())
|
||||||
|
.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
|
||||||
}
|
}
|
||||||
.getEffectivePom()
|
|
||||||
.setDependencies(new ArrayList<>())
|
|
||||||
.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
|
|
||||||
}
|
}
|
||||||
task copyFiles {
|
task copyFiles {
|
||||||
doLast {
|
doLast {
|
||||||
|
@ -41,6 +41,7 @@ import com.sk89q.worldedit.internal.annotation.Selection;
|
|||||||
import com.sk89q.worldedit.math.BlockVector3;
|
import com.sk89q.worldedit.math.BlockVector3;
|
||||||
import com.sk89q.worldedit.regions.CuboidRegion;
|
import com.sk89q.worldedit.regions.CuboidRegion;
|
||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
|
import org.enginehub.piston.annotation.param.Arg;
|
||||||
import org.enginehub.piston.annotation.param.Switch;
|
import org.enginehub.piston.annotation.param.Switch;
|
||||||
import com.sk89q.worldedit.util.command.parametric.Optional;
|
import com.sk89q.worldedit.util.command.parametric.Optional;
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
@ -613,8 +614,7 @@ public class AnvilCommands {
|
|||||||
desc = "Paste chunks from your anvil clipboard",
|
desc = "Paste chunks from your anvil clipboard",
|
||||||
descFooter =
|
descFooter =
|
||||||
"Paste the chunks from your anvil clipboard.\n" +
|
"Paste the chunks from your anvil clipboard.\n" +
|
||||||
"The -c flag will align the paste to the chunks.",
|
"The -c flag will align the paste to the chunks."
|
||||||
|
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.anvil.pastechunks")
|
@CommandPermissions("worldedit.anvil.pastechunks")
|
||||||
public void paste(Player player, LocalSession session, EditSession editSession, @Switch(name='c', desc = "TODO") boolean alignChunk) throws WorldEditException, IOException {
|
public void paste(Player player, LocalSession session, EditSession editSession, @Switch(name='c', desc = "TODO") boolean alignChunk) throws WorldEditException, IOException {
|
||||||
|
@ -490,7 +490,7 @@ public class RegionCommands {
|
|||||||
@Switch(name = 's', desc = "Shift the selection to the target location")
|
@Switch(name = 's', desc = "Shift the selection to the target location")
|
||||||
boolean moveSelection,
|
boolean moveSelection,
|
||||||
@Switch(name = 'a', desc = "Ignore air blocks")
|
@Switch(name = 'a', desc = "Ignore air blocks")
|
||||||
boolean ignoreAirBlocks
|
boolean ignoreAirBlocks,
|
||||||
@Switch(name='b', desc = "TODO") boolean copyBiomes,
|
@Switch(name='b', desc = "TODO") boolean copyBiomes,
|
||||||
|
|
||||||
@Switch(name='e', desc = "TODO") boolean skipEntities,
|
@Switch(name='e', desc = "TODO") boolean skipEntities,
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.sk89q.worldedit.command.argument;
|
||||||
|
|
||||||
|
import org.enginehub.piston.converter.ArgumentConverter;
|
||||||
|
|
||||||
|
public class StringValidator implements ArgumentConverter<String> {
|
||||||
|
}
|
@ -45,11 +45,18 @@ import com.sk89q.worldedit.command.BiomeCommands;
|
|||||||
import com.sk89q.worldedit.command.BiomeCommandsRegistration;
|
import com.sk89q.worldedit.command.BiomeCommandsRegistration;
|
||||||
import com.sk89q.worldedit.command.BrushCommands;
|
import com.sk89q.worldedit.command.BrushCommands;
|
||||||
import com.sk89q.worldedit.command.ChunkCommands;
|
import com.sk89q.worldedit.command.ChunkCommands;
|
||||||
|
import com.sk89q.worldedit.command.ChunkCommandsRegistration;
|
||||||
import com.sk89q.worldedit.command.ClipboardCommands;
|
import com.sk89q.worldedit.command.ClipboardCommands;
|
||||||
|
import com.sk89q.worldedit.command.ClipboardCommandsRegistration;
|
||||||
|
import com.sk89q.worldedit.command.ExpandCommands;
|
||||||
import com.sk89q.worldedit.command.GeneralCommands;
|
import com.sk89q.worldedit.command.GeneralCommands;
|
||||||
|
import com.sk89q.worldedit.command.GeneralCommandsRegistration;
|
||||||
import com.sk89q.worldedit.command.GenerationCommands;
|
import com.sk89q.worldedit.command.GenerationCommands;
|
||||||
import com.sk89q.worldedit.command.HistoryCommands;
|
import com.sk89q.worldedit.command.HistoryCommands;
|
||||||
|
import com.sk89q.worldedit.command.HistoryCommandsRegistration;
|
||||||
import com.sk89q.worldedit.command.NavigationCommands;
|
import com.sk89q.worldedit.command.NavigationCommands;
|
||||||
|
import com.sk89q.worldedit.command.NavigationCommandsRegistration;
|
||||||
|
import com.sk89q.worldedit.command.PaintBrushCommands;
|
||||||
import com.sk89q.worldedit.command.RegionCommands;
|
import com.sk89q.worldedit.command.RegionCommands;
|
||||||
import com.sk89q.worldedit.command.SchematicCommands;
|
import com.sk89q.worldedit.command.SchematicCommands;
|
||||||
import com.sk89q.worldedit.command.SchematicCommandsRegistration;
|
import com.sk89q.worldedit.command.SchematicCommandsRegistration;
|
||||||
@ -210,7 +217,7 @@ public final class PlatformCommandManager {
|
|||||||
DirectionConverter.register(worldEdit, commandManager);
|
DirectionConverter.register(worldEdit, commandManager);
|
||||||
FactoryConverter.register(worldEdit, commandManager);
|
FactoryConverter.register(worldEdit, commandManager);
|
||||||
for (int count = 2; count <= 3; count++) {
|
for (int count = 2; count <= 3; count++) {
|
||||||
commandManager.registerConverter(Key.of(double.class, Annotations.radii(count)),
|
commandManager.registerConverter(Key.of(double.class, com.sk89q.worldedit.extension.platform.Annotations.radii(count)),
|
||||||
CommaSeparatedValuesConverter.wrapAndLimit(ArgumentConverters.get(
|
CommaSeparatedValuesConverter.wrapAndLimit(ArgumentConverters.get(
|
||||||
TypeToken.of(double.class)
|
TypeToken.of(double.class)
|
||||||
), count)
|
), count)
|
||||||
@ -309,15 +316,15 @@ public final class PlatformCommandManager {
|
|||||||
new SuperPickaxeCommands(worldEdit)
|
new SuperPickaxeCommands(worldEdit)
|
||||||
);
|
);
|
||||||
registerSubCommands(
|
registerSubCommands(
|
||||||
"brush",
|
"brush",
|
||||||
ImmutableList.of("br", "/brush", "/br"),
|
ImmutableList.of("br", "/brush", "/br"),
|
||||||
"Brushing commands",
|
"Brushing commands",
|
||||||
BrushCommandsRegistration.builder(),
|
BrushCommandsRegistration.builder(),
|
||||||
new BrushCommands(worldEdit),
|
new BrushCommands(worldEdit),
|
||||||
manager -> {
|
(Consumer<CommandManager>) manager -> {
|
||||||
PaintBrushCommands.register(commandManagerService, manager, registration);
|
PaintBrushCommands.register(commandManagerService, manager, registration);
|
||||||
ApplyBrushCommands.register(commandManagerService, manager, registration);
|
ApplyBrushCommands.register(commandManagerService, manager, registration);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
registerSubCommands(
|
registerSubCommands(
|
||||||
"worldedit",
|
"worldedit",
|
||||||
|
@ -91,7 +91,7 @@ configure(subprojects + project("core:ap")) {
|
|||||||
def textExtrasVersion = "3.0.2"
|
def textExtrasVersion = "3.0.2"
|
||||||
project("core") {
|
project("core") {
|
||||||
def textVersion = "3.0.1"
|
def textVersion = "3.0.1"
|
||||||
def pistonVersion = '0.4.1'
|
def pistonVersion = '0.4.2'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
shade "net.kyori:text-api:$textVersion"
|
shade "net.kyori:text-api:$textVersion"
|
||||||
@ -126,7 +126,8 @@ project("bukkit") {
|
|||||||
shade "net.kyori:text-adapter-bukkit:$textExtrasVersion"
|
shade "net.kyori:text-adapter-bukkit:$textExtrasVersion"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*project("sponge") {
|
/*
|
||||||
|
project("sponge") {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "Sponge"
|
name = "Sponge"
|
||||||
@ -136,7 +137,8 @@ project("bukkit") {
|
|||||||
dependencies {
|
dependencies {
|
||||||
shade "net.kyori:text-adapter-spongeapi:$textExtrasVersion"
|
shade "net.kyori:text-adapter-spongeapi:$textExtrasVersion"
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
tasks.register("build") {
|
tasks.register("build") {
|
||||||
dependsOn(subprojects.collect { it.tasks.named("build") })
|
dependsOn(subprojects.collect { it.tasks.named("build") })
|
||||||
|
Loading…
Reference in New Issue
Block a user