PlotSquared/Core/build.gradle

88 lines
2.8 KiB
Groovy
Raw Normal View History

2019-03-18 19:49:22 +01:00
repositories {
2019-08-08 01:16:44 +02:00
maven { url = "https://jitpack.io" }
2019-03-18 19:49:22 +01:00
}
2019-08-08 01:16:44 +02:00
def textVersion = "3.0.2"
2019-03-18 19:49:22 +01:00
dependencies {
implementation("org.yaml:snakeyaml:1.25")
implementation("com.google.code.gson:gson:2.8.6") {
2019-08-08 01:16:44 +02:00
because("Minecraft uses GSON 2.8.0")
force = true
}
implementation("org.projectlombok:lombok:1.18.12")
compileOnly("org.projectlombok:lombok:1.18.12")
2019-08-08 01:16:44 +02:00
testCompileOnly("org.projectlombok:lombok:1.18.8")
annotationProcessor("org.projectlombok:lombok:1.18.8")
testAnnotationProcessor("org.projectlombok:lombok:1.18.8")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.3.61")
Pull/2693 (#2694) * Commit WIP flag work. * More ported flag types, and additions to the flag API. * Make PlotFlag more generic to allow generic flag creation * Pull Captions methods into a Caption interface. * Port MusicFlag * Port flight flag * Port UntrustedVisitFlag * Port DenyExitFlag * Remove paper suggestion * Make ListFlag lists immutable * Update Flag containers. Add javadocs. Add missing methods. * Port description flag * Port greeting and farewell flags * Port weather flag * Move getExample implementation to BooleanFlag * Port reserved flags * Port all boolean flags. * Remove unused flag types * Invert liquid-flow flag * Find the real (legacy) flag name * Change NOITFY -> NOTIFY in Captions * Make IntegerFlag extendable * Port integer flags * Update Flag command to current API state * Begin remaking flag command * Create DoubleFlag + extract common parsing stuff * Supply arguments in flag parse exceptions * Implement missing flag subcommands * Update Flag command to current API state * Implement PriceFlag * Port deny-teleport * Port gamemode flags * Port BreakFlag * Port PlaceFlag * Port UseFlag * Remove old unused flag constants * Port blocked-cmds flag * Fix entity util * Port TimeFlag * Use CaptionUtility for formatting * Port keep flag * Fix imports * Reformat code * Remove unused classes * Fix MainUtil.java * Remove FlagCmd * Add flag info header and footer * Comment out flag related stuff in SchematicHandler * Remove FlagManager * Finalize Plot.java * Finalize PlotArea.java * Finalize PlotListener * Fix API issues * Fix a bunch of compile errors * Fix `/plot flag remove` * Fix initialization of GlobalFlagContainer * Apply API changes to events * Update SQLManager to new API * Invert default value for DenyExitFlag * Replace flag.getValue().toString() with flag.toString() * Make FlagContainer instance in Plot final * Fix various command issues * Clean up PlotSettings * Don't show internal flags in flag list * Fix `/plot flag add` * Remove the info inventory as it's 100% broken * Add plot info entries and fix up the default format * Fix default flag state in Captions * 781c200 part 2 * Fix odd grammar in captions * Fix odd grammar in captions v2 * Add create table statements for plot_flags * Remove old flag references in SQLManager * Use the new plot_flags table * Add tab completion to `/plot flag` * Improve parse error handling * Make flag permission check recognize parse exceptions * Initial progress towards flag conversion * Fix minor issues * Don't validate flags during flag conversion * Allow unrecognized flags to be parsed * Filter out internal flags from command sugguestions * Use the wrong caption when there's no plot description set * Limit command suggestions for boolean flags * Make blocktypelistflags accept blockcategories * Require categories to be prefixed with '#' and fix some minor display issues * Fix plot database conversion * Update PlotFlagEvent.java Updated return description * Fix command annotation wrapping * Add FLAG_UPDATE event for FlagContainer listeners * Make getParentContainer nullable * Document castUnsafe in FlagContainer * Document FlagContainer constructors * Add missing documentation to FlagContainer * Document FlagParseException * Fix wording in FlagContainer javadoc * Document InternalFlag * Document PlotFlag * Minor changes * Remove revisit comments Co-authored-by: Hannes Greule <SirYwell@users.noreply.github.com> Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
2020-02-24 18:42:02 +01:00
implementation("org.jetbrains:annotations:18.0.0")
}
2019-03-18 19:49:22 +01:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
2016-02-27 19:41:49 +01:00
2017-03-08 06:51:01 +01:00
processResources {
2019-08-06 21:05:04 +02:00
from("src/main/resources") {
include "plugin.properties"
2017-03-08 06:51:01 +01:00
expand(
version: "${project.parent.version}",
name: project.parent.name,
commit: "${git.head().abbreviatedId}",
date: "${git.head().getDate().format("yy.MM.dd")}",
2017-03-08 06:51:01 +01:00
)
}
}
2019-09-07 22:46:13 +02:00
//noinspection GroovyAssignabilityCheck
jar.archiveFileName = "PlotSquared-CoreAPI-${project.parent.version}.jar"
2020-04-11 02:19:18 +02:00
jar.destinationDirectory = file("../mvn/com/plotsquared/PlotSquared-CoreAPI/" + project.parent.version)
task createPom {
doLast {
pom {
project {
2020-04-11 02:19:18 +02:00
groupId = "com.plotsquared"
artifactId = "PlotSquared-CoreAPI"
2019-08-08 01:16:44 +02:00
version = project.parent.version
}
2020-04-11 02:19:18 +02:00
}.writeTo("../mvn/com/plotsquared/PlotSquared-CoreAPI/${project.parent.version}/PlotSquared-CoreAPI-${project.parent.version}.pom")
pom {
project {
2020-04-11 02:19:18 +02:00
groupId = "com.plotsquared"
artifactId = "PlotSquared-CoreAPI"
2019-08-08 01:16:44 +02:00
version = "latest"
}
2020-04-11 02:19:18 +02:00
}.writeTo("../mvn/com/plotsquared/PlotSquared-CoreAPI/latest/PlotSquared-CoreAPI-latest.pom")
}
2017-03-08 06:51:01 +01:00
}
task copyFiles {
doLast {
copy {
2020-04-11 02:19:18 +02:00
from("../mvn/com/plotsquared/PlotSquared-CoreAPI/${project.parent.version}/")
into("../mvn/com/plotsquared/PlotSquared-CoreAPI/latest/")
2019-08-06 21:05:04 +02:00
include("*.jar")
rename("PlotSquared-CoreAPI-${project.parent.version}.jar", "PlotSquared-CoreAPI-latest.jar")
2017-03-08 06:51:01 +01:00
}
}
}
2019-08-08 01:16:44 +02:00
shadowJar {
dependencies {
include(dependency("net.kyori:text-api:3.0.2"))
include(dependency("net.kyori:text-serializer-gson:3.0.2"))
include(dependency("net.kyori:text-serializer-legacy:3.0.2"))
include(dependency("net.kyori:text-serializer-plain:3.0.2"))
}
2020-04-11 02:19:18 +02:00
relocate('net.kyori.text', 'com.plotsquared.formatting.text')
2019-08-08 01:16:44 +02:00
}
shadowJar.doLast {
task ->
ant.checksum file: task.archivePath
}
build.dependsOn(shadowJar)
2017-03-08 06:51:01 +01:00
build.finalizedBy(copyFiles)
2018-08-10 17:01:10 +02:00
copyFiles.dependsOn(createPom)