mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-25 12:45:48 +01:00
06939181a7
* Fix /deletealladmin NPE * Fix claim greeting showing in parent when leaving subclaim * Fix claims being removed in current world when using world argument with abandonall and deleteall commands. * Fix abandonclaim with ignoreclaims giving claimblocks/money to source player and not claim owner. * Fix interact-item-secondary being triggered on left-click. * Fix /gdreload NoSuchMethodError on 1.14/1.15 servers. * Fix WECUI causing visual fillers to not show. * Update kotlin-stdlib, okio, and okhttp3 libs. * Add new visual config setting 'hide-fillers-when-using-wecui'. * Use unmodifiable map instead of immutable copy getChunksToClaimMap. * (Bukkit) Fix investigate claim loading chunks. * (Sponge) Fix NoClassDefFoundError when using gddebug command. * (Sponge) Add new admin command '/abandonworld [<world>]' which will abandon all user claims in world specified. * (Sponge) Add support for world argument in commands '/abandonall', '/deleteall', and '/deletealladmin'.
228 lines
7.0 KiB
Groovy
228 lines
7.0 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven {
|
|
name = 'forge'
|
|
url = 'http://files.minecraftforge.net/maven'
|
|
}
|
|
maven {
|
|
url = 'https://plugins.gradle.org/m2/'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '5.1.0'
|
|
id 'org.spongepowered.plugin' version '0.8.1'
|
|
id 'net.minecrell.vanillagradle.server' version '2.2-4'
|
|
id 'java'
|
|
}
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
group = 'com.griefdefender'
|
|
|
|
sponge {
|
|
plugin {
|
|
id = "griefdefender"
|
|
meta {
|
|
name = "GriefDefender"
|
|
version = "$version"
|
|
description = "Designed to defend servers from all forms of grief."
|
|
url = "$url"
|
|
authors = ["bloodmc"]
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// Environment variables for the build set by the build server
|
|
ext.buildNumber = System.env.BUILD_NUMBER ?: '0'
|
|
|
|
defaultTasks 'clean', 'build'
|
|
|
|
sourceCompatibility = '1.8'
|
|
targetCompatibility = '1.8'
|
|
|
|
archivesBaseName = 'griefdefender'
|
|
|
|
project.ext.getGitHash = {
|
|
def command = Runtime.getRuntime().exec("git rev-parse --short HEAD")
|
|
def result = command.waitFor()
|
|
return (result == 0) ? command.inputStream.text.trim() : "nogit"
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
name = 'sk89q'
|
|
url = 'https://maven.sk89q.com/repo'
|
|
}
|
|
maven {
|
|
name = 'bstats'
|
|
url = 'https://repo.codemc.org/repository/maven-public'
|
|
}
|
|
maven {
|
|
name = 'dynmap-repo'
|
|
url = 'http://repo.mikeprimm.com'
|
|
}
|
|
maven {
|
|
name = 'sponge'
|
|
url = 'https://repo.spongepowered.org/maven/'
|
|
}
|
|
maven {
|
|
name = 'nucleus'
|
|
url = 'http://repo.drnaylor.co.uk/artifactory/list/minecraft'
|
|
}
|
|
maven {
|
|
name = 'sonatype_releases'
|
|
url = 'https://oss.sonatype.org/content/repositories/releases'
|
|
}
|
|
maven {
|
|
name = 'sonatype_snapshots'
|
|
url = 'https://oss.sonatype.org/content/repositories/snapshots'
|
|
}
|
|
maven {
|
|
name = 'glare'
|
|
url = 'https://repo.glaremasters.me/repository/bloodshot'
|
|
}
|
|
maven {
|
|
name = 'aikar'
|
|
url = 'https://repo.aikar.co/content/groups/aikar'
|
|
}
|
|
maven {
|
|
name = 'worldedit'
|
|
url = 'http://maven.sk89q.com/artifactory/repo'
|
|
}
|
|
maven {
|
|
name = 'jitpack'
|
|
url = 'https://jitpack.io'
|
|
}
|
|
}
|
|
|
|
minecraft {
|
|
version = project.minecraftVersion
|
|
mappings = project.mcpMappings
|
|
}
|
|
|
|
sourceSets {
|
|
api
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(path: ":GriefDefenderAPI"))
|
|
compile project (':common')
|
|
compileOnly "com.griefdefender:adapter-sponge:$adapterSpongeVersion"
|
|
compileOnly "com.griefdefender:reflect-helper:1.0"
|
|
// Sponge
|
|
apiCompile "org.spongepowered:spongeapi:$apiVersion"
|
|
|
|
compileOnly ("org.spongepowered:spongecommon:$commonVersion:dev") {
|
|
exclude module: 'testplugins'
|
|
}
|
|
// Plugins
|
|
compileOnly ("io.github.nucleuspowered:nucleus-api:1.14.1-S7.1"){
|
|
exclude module: 'spongeapi'
|
|
}
|
|
compile "com.github.bloodmc:mcclans-api:develop-SNAPSHOT"
|
|
compileOnly "com.sk89q.worldedit:worldedit-core:6.1.4-SNAPSHOT"
|
|
compileOnly "com.github.lucko:luckperms:master-SNAPSHOT"
|
|
compileOnly "us.dynmap:dynmap-api:3.0-SNAPSHOT"
|
|
|
|
// required for bootstrap
|
|
compile "com.googlecode.json-simple:json-simple:1.1.1"
|
|
compileOnly "aopalliance:aopalliance:1.0"
|
|
compileOnly "co.aikar:acf-core:0.5.0-SNAPSHOT"
|
|
compileOnly "co.aikar:acf-sponge:0.5.0-SNAPSHOT"
|
|
compileOnly "co.aikar:locales:1.0-SNAPSHOT"
|
|
compileOnly "co.aikar:minecraft-timings:1.0.4"
|
|
compileOnly "co.aikar:Table:1.0.0-SNAPSHOT"
|
|
compileOnly "com.flowpowered:flow-math:1.0.3"
|
|
compileOnly "com.github.ben-manes.caffeine:caffeine:2.7.0"
|
|
compileOnly "com.squareup.okhttp3:okhttp:4.7.2"
|
|
compileOnly "com.squareup.okio:okio:2.6.0"
|
|
compileOnly "commons-io:commons-io:2.6"
|
|
compileOnly "it.unimi.dsi:fastutil:8.2.3"
|
|
compileOnly "javax.inject:javax.inject:1"
|
|
compileOnly "me.lucko:jar-relocator:1.3"
|
|
compileOnly "net.jodah:expiringmap:0.5.9"
|
|
compileOnly "org.apache.commons:commons-lang3:3.9"
|
|
compileOnly "org.checkerframework:checker:2.8.2"
|
|
compileOnly "org.jetbrains:annotations:17.0.0"
|
|
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.3.72"
|
|
compileOnly "org.ow2.asm:asm-debug-all:5.2"
|
|
compileOnly "org.spongepowered:configurate-core:3.7-SNAPSHOT"
|
|
compileOnly "org.spongepowered:configurate-gson:3.7-SNAPSHOT"
|
|
compileOnly "org.spongepowered:configurate-hocon:3.7-SNAPSHOT"
|
|
compileOnly "org.spongepowered:configurate-yaml:3.7-SNAPSHOT"
|
|
compileOnly "net.kyori:event-api:3.0.0"
|
|
compileOnly "net.kyori:event-method:3.0.0"
|
|
compileOnly "net.kyori:event-method-asm:3.0.0"
|
|
compileOnly "net.kyori:text-adapter-bukkit:3.0.3"
|
|
compileOnly "net.kyori:text-adapter-bungeecord:3.0.3"
|
|
compileOnly "net.kyori:text-adapter-spongeapi:3.0.3"
|
|
compileOnly "net.kyori:text-api:3.0.2"
|
|
compileOnly "net.kyori:text-serializer-gson:3.0.2"
|
|
compileOnly "net.kyori:text-serializer-legacy:3.0.2"
|
|
compileOnly "net.kyori:text-serializer-plain:3.0.2"
|
|
}
|
|
|
|
jar {
|
|
manifest.attributes('FMLAT': 'griefdefender_at.cfg')
|
|
manifest.attributes('Implementation-Title': 'GriefDefender')
|
|
manifest.attributes('Implementation-Version': "$version")
|
|
manifest.attributes('Git-Hash': project.ext.getGitHash())
|
|
classifier = 'SNAPSHOT'
|
|
baseName = 'griefdefender-sponge'
|
|
}
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives shadowJar
|
|
}
|
|
|
|
shadowJar {
|
|
mainSpec.sourcePaths.clear()
|
|
dependsOn reobfJar
|
|
|
|
classifier = ''
|
|
|
|
dependencies {
|
|
include dependency(':common')
|
|
//include dependency("com.squareup.okhttp3:okhttp:3.9.1")
|
|
//include dependency("com.squareup.okio:okio:1.13.0")
|
|
//include dependency("org.jetbrains.kotlin:kotlin-stdlib:1.3.31")
|
|
include dependency("com.googlecode.json-simple:json-simple:1.1.1")
|
|
}
|
|
|
|
relocate("aopalliance", "com.griefdefender.lib.aopalliance")
|
|
relocate("com.github.benmanes.caffeine", "com.griefdefender.lib.caffeine")
|
|
relocate("it.unimi.dsi", "com.griefdefender.lib.fastutil")
|
|
relocate("net.jodah", "com.griefdefender.lib.jodah")
|
|
relocate("okhttp3", "com.griefdefender.lib.okhttp3")
|
|
relocate("okio", "com.griefdefender.lib.okio")
|
|
relocate("kotlin", "com.griefdefender.lib.kotlin")
|
|
relocate("org.apache.commons.io", "com.griefdefender.lib.commonsio")
|
|
relocate("org.apache.commons.lang3", "com.griefdefender.lib.commonslang3")
|
|
relocate("org.checkerframework", "com.griefdefender.lib.checkerframework")
|
|
|
|
|
|
exclude "dummyThing"
|
|
afterEvaluate {
|
|
from zipTree(reobfJar.jar)
|
|
}
|
|
} |