mirror of
https://git.webmc.xyz/Colbster937/originblacklist
synced 2025-06-05 18:32:00 -09:00
84 lines
2.3 KiB
Groovy
84 lines
2.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'eclipse'
|
|
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.8'
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
id("xyz.jpenilla.run-velocity") version "2.3.1"
|
|
}
|
|
|
|
|
|
group = 'dev.colbster937'
|
|
version = '1.0.6'
|
|
description = 'A reimplementation of OriginBlacklist for EaglerXServer'
|
|
def targetJavaVersion = 17
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "papermc-repo"
|
|
url = "https://repo.papermc.io/repository/maven-public/"
|
|
}
|
|
maven {
|
|
name = "sonatype"
|
|
url = "https://oss.sonatype.org/content/groups/public/"
|
|
}
|
|
maven {
|
|
name = "spigotmc-repo"
|
|
url = "https://hub.spigotmc.org/nexus/content/repositories/public/"
|
|
}
|
|
maven {
|
|
name = "md_5"
|
|
url = "https://repo.md-5.net/content/repositories/releases/"
|
|
}
|
|
maven {
|
|
name = "aikar"
|
|
url = "https://repo.aikar.co/nexus/content/groups/aikar/"
|
|
}
|
|
maven {
|
|
name = "lax1dude"
|
|
url = "https://repo.lax1dude.net/repository/releases/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
|
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
|
compileOnly("org.bukkit:bukkit:1.8-R0.1-SNAPSHOT")
|
|
compileOnly("net.md-5:bungeecord-api:1.8-SNAPSHOT")
|
|
compileOnly("net.lax1dude.eaglercraft.backend:api-velocity:1.0.0")
|
|
compileOnly("net.lax1dude.eaglercraft.backend:api-bungee:1.0.0")
|
|
compileOnly("net.lax1dude.eaglercraft.backend:api-bukkit:1.0.0")
|
|
implementation("org.yaml:snakeyaml:2.2")
|
|
implementation("net.kyori:adventure-text-serializer-legacy:4.20.0")
|
|
implementation("net.kyori:adventure-text-minimessage:4.20.0")
|
|
}
|
|
|
|
tasks {
|
|
runVelocity {
|
|
velocityVersion("3.3.0-SNAPSHOT")
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
|
}
|
|
|
|
processResources {
|
|
filesMatching(['plugin.yml', 'bungee.yml', 'velocity-plugin.json', 'Base.java']) {
|
|
expand(
|
|
version: project.version,
|
|
description: project.description
|
|
)
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'org.yaml.snakeyaml', 'dev.colbster937.shaded.snakeyaml'
|
|
archiveVersion.set('')
|
|
archiveClassifier.set('')
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
options.release.set(targetJavaVersion)
|
|
} |