WorldSystem/build.gradle

285 lines
7.7 KiB
Groovy
Raw Normal View History

buildscript {
repositories {
2021-12-15 01:34:28 +01:00
jcenter() {
allowInsecureProtocol = true
}
2022-07-16 13:23:52 +02:00
maven {
2022-07-16 12:51:36 +02:00
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
2022-07-16 15:14:49 +02:00
content {
2022-07-16 12:51:36 +02:00
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
2022-07-16 15:14:49 +02:00
}
2022-07-16 15:08:39 +02:00
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/bukkit/bukkit/'
}
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/'
}
mavenCentral()
2022-07-16 15:08:39 +02:00
mavenLocal()
}
}
plugins {
2022-07-14 16:33:29 +02:00
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'kr.entree.spigradle' version '2.4.2'
id 'io.freefair.lombok' version '6.5.0.3'
id 'java'
id 'jacoco'
}
apply from: "$rootDir/gradle/jacoco.gradle"
//apply from: "$rootDir/gradle/publish.gradle"
2022-07-15 11:02:02 +02:00
sourceCompatibility = 17
targetCompatibility = 17
ext {
mcVersion = project.property("mcVersion")
}
group project.property("group")
spigot {
name = project.property("pluginName")
authors = [project.property("author")]
apiVersion = project.property("apiVersion")
2020-12-28 01:32:12 +01:00
depends = [project.property("Vault")]
2020-12-27 19:45:13 +01:00
//Comands
commands {
"ws" {
description = 'All WorldSystem Commands'
permissionMessage = 'You do not have permission!'
}
}
permissions {
'ws.*' {
description = 'gives all Perms'
defaults = 'op'
children = [
'ws.tp.*':true,
'ws.get':true,
'ws.sethome':true,
'ws.tp.world':true,
'ws.tp.toother':true,
'ws.tp.other':true,
'ws.build':true,
'ws.gamemode':true,
'ws.delete':true,
'ws.lag':true,
'ws.big':true,
'ws.large':true,
'ws.confirm':true
]
}
'ws.sethome' {
description = 'You can set a different worldspawn'
defaults = true
}
'ws.tp' {
description = 'You can teleport everything'
defaults = 'op'
children = ['ws.tp.toother':true,'ws.tp.other':true,'ws.tp.world':true]
}
'ws.build' {
description = 'You can build on other Worlds without WorldPermissions'
defaults = 'op'
}
'ws.get' {
description = 'You can create a world via /ws get'
defaults = true
}
'ws.delete' {
description = 'You can delete a world'
defaults = 'op'
}
'ws.gamemode' {
description = 'You can change GameMode on other worlds'
defaults = 'op'
}
'ws.tp.other' {
description = 'You can teleport other persons'
defaults = 'op'
}
'ws.tp.toother' {
description = 'You can teleport across worlds'
defaults = 'op'
}
'ws.tp.world' {
description = 'You can teleport to without rights World'
defaults = 'op'
}
'ws.lag' {
description = 'You can see lag messages'
defaults = 'op'
}
'ws.big' {
description = 'Gives you a bigger world (if set)'
defaults = 'op'
}
'ws.large' {
defaults = 'op'
children = ['ws.big':true]
}
'ws.confirm' {
description = 'You can confirm (if needed) an auto-update'
defaults = 'op'
}
}
load = STARTUP
// depends = ['']
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
archivesBaseName = project.property("pluginName")
repositories {
2021-12-15 01:34:28 +01:00
jcenter() {
allowInsecureProtocol = true
}
2022-07-16 15:17:47 +02:00
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
2022-07-16 09:28:36 +02:00
2022-07-16 15:17:47 +02:00
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
2022-07-16 15:08:39 +02:00
maven {
2022-07-16 15:17:47 +02:00
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/bukkit/bukkit/'
}
2022-07-16 15:08:39 +02:00
maven {
2022-07-16 15:17:47 +02:00
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/'
}
2022-07-16 09:30:28 +02:00
}
2022-07-16 15:17:47 +02:00
mavenCentral()
mavenLocal()
spigot()
// bungeecord()
// paper()
// protocolLib()
// enginehub()
2022-07-16 09:08:56 +02:00
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url = 'https://oss.sonatype.org/content/repositories/central'
}
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/public/'
}
2022-07-15 11:34:02 +02:00
maven {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
url 'https://repo.papermc.io/repository/maven-public/'
}
2021-12-15 01:34:28 +01:00
maven {
2022-07-14 16:33:29 +02:00
url = 'https://ci.athion.net/job/FastAsyncWorldEdit/'
2021-12-15 01:34:28 +01:00
}
maven {
url = 'https://jitpack.io'
}
maven {
url = 'https://libraries.minecraft.net'
}
maven {
url = 'https://repo.onarandombox.com/content/groups/public/'
}
maven {
2022-07-14 16:33:29 +02:00
url = 'https://maven.enginehub.org/repo/'
}
2022-07-14 16:33:29 +02:00
maven { url = "https://ci.athion.net/job/FastAsyncWorldEdit/changes" }
2020-12-27 17:55:09 +01:00
// Commons - IO
2022-07-14 18:34:52 +02:00
maven { url = "https://mvnrepository.com/artifact/commons-io/commons-io/2.11.0" }
2020-12-27 17:55:09 +01:00
// WorldEdit
2021-12-15 01:34:28 +01:00
maven { url = "https://maven.enginehub.org/repo/" }
maven {
name = "IntellectualSites Releases"
2022-07-14 16:33:29 +02:00
url = uri("https://ci.athion.net/job/FastAsyncWorldEdit/changes")
2021-12-15 01:34:28 +01:00
}
mavenCentral()
2022-07-16 09:08:56 +02:00
mavenLocal()
}
dependencies {
2022-07-14 19:25:43 +02:00
constraints {
implementation("org.yaml:snakeyaml") {
version { strictly("1.30") }
because("Bukkit provides SnakeYaml")
implementation("net.kyori:adventure-text-minimessage:4.11.0")
}
}
compileOnly lombok()
annotationProcessor lombok()
2022-07-14 16:33:29 +02:00
implementation spigot('1.19')
//Add dependencies here
//Test dependencies
testImplementation 'org.junit.jupiter:junit-jupiter:5.+'
2022-07-14 16:33:29 +02:00
testImplementation "org.mockito:mockito-core:4.+"
2022-07-15 12:52:27 +02:00
// testImplementation 'com.github.seeseemelk:MockBukkit-v1.19:2.+'
// testImplementation mockBukkit()
testImplementation 'org.assertj:assertj-core:3.+'
testImplementation lombok()
testAnnotationProcessor lombok()
2022-07-14 16:33:29 +02:00
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
2021-12-15 01:34:28 +01:00
2022-07-14 16:33:29 +02:00
compileOnly 'me.clip:placeholderapi:2.11.2'
2022-07-16 09:32:05 +02:00
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
2022-07-16 13:23:52 +02:00
// compileOnly 'org.spigotmc:spigot:1.19-R0.1-SNAPSHOT'
2022-07-14 19:55:00 +02:00
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
compileOnly 'com.mojang:authlib:1.5.25'
2022-07-14 18:07:41 +02:00
compileOnly 'org.projectlombok:lombok:1.18.24'
2022-07-14 16:37:41 +02:00
compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.2.11-SNAPSHOT'
2022-07-14 19:25:43 +02:00
compileOnly 'com.sk89q.worldedit:worldedit-core:7.2.11-SNAPSHOT'
2022-07-14 19:14:06 +02:00
// compileOnlyApi 'net.kyori:adventure-text-minimessage'
2022-07-14 19:21:51 +02:00
// compileOnly("net.kyori:adventure-api")
2022-07-14 19:15:15 +02:00
// compileOnlyApi("net.kyori:adventure-text-minimessage")
2022-07-14 18:19:48 +02:00
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.4.1")
2022-07-14 19:25:43 +02:00
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.4.1")
2022-07-14 17:23:16 +02:00
compileOnly files('lib/FastAsyncWorldEdit.jar')
}
shadowJar {
classifier = ''
// dependencies {
2022-07-14 16:37:41 +02:00
// include(dependency('co.aikar:acf-paper:0.5.1-SNAPSHOT'))
// }
// relocate 'co.aikar.commands', "${packageName}.acf"
// relocate 'co.aikar.locales', "${packageName}.locales"
}
tasks.build.dependsOn(shadowJar)
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
ignoreFailures = false
}
processResources {
project.properties.put("version", this.version)
expand project.properties
}
defaultTasks 'build'