mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
Add FancyVisuals plugin
This commit is contained in:
131
plugins/fancyvisuals/build.gradle.kts
Normal file
131
plugins/fancyvisuals/build.gradle.kts
Normal file
@@ -0,0 +1,131 @@
|
||||
import net.minecrell.pluginyml.paper.PaperPluginDescription
|
||||
|
||||
plugins {
|
||||
id("java-library")
|
||||
|
||||
id("xyz.jpenilla.run-paper")
|
||||
id("com.gradleup.shadow")
|
||||
id("net.minecrell.plugin-yml.paper")
|
||||
}
|
||||
|
||||
runPaper.folia.registerTask()
|
||||
|
||||
allprojects {
|
||||
group = "de.oliver"
|
||||
version = findProperty("fancyvisualsVersion") as String
|
||||
description = "Simple, lightweight and fast visual plugin using packets"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven(url = "https://repo.papermc.io/repository/maven-public/")
|
||||
maven(url = "https://repo.fancyplugins.de/releases")
|
||||
maven(url = "https://repo.lushplugins.org/releases")
|
||||
maven(url = "https://jitpack.io")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
||||
|
||||
implementation(project(":plugins:fancyvisuals:api"))
|
||||
|
||||
compileOnly("de.oliver:FancyLib:33") // loaded in FancyVisualLoader
|
||||
compileOnly("de.oliver:FancySitula:0.0.13") // loaded in FancyVisualLoader
|
||||
compileOnly("de.oliver.FancyAnalytics:api:0.0.8") // loaded in FancyVisualLoader
|
||||
compileOnly("de.oliver.FancyAnalytics:logger:0.0.5") // loaded in FancyVisualLoader
|
||||
|
||||
implementation("org.lushplugins:ChatColorHandler:4.0.0")
|
||||
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
|
||||
|
||||
// commands
|
||||
implementation("org.incendo:cloud-core:2.0.0")
|
||||
implementation("org.incendo:cloud-paper:2.0.0-beta.10")
|
||||
implementation("org.incendo:cloud-annotations:2.0.0")
|
||||
annotationProcessor("org.incendo:cloud-annotations:2.0.0")
|
||||
}
|
||||
|
||||
paper {
|
||||
main = "de.oliver.fancyvisuals.FancyVisuals"
|
||||
bootstrapper = "de.oliver.fancyvisuals.loaders.FancyVisualsBootstrapper"
|
||||
loader = "de.oliver.fancyvisuals.loaders.FancyVisualsLoader"
|
||||
foliaSupported = true
|
||||
version = findProperty("fancyvisualsVersion") as String
|
||||
description = "Simple, lightweight and fast visuals plugin using packets"
|
||||
apiVersion = "1.19"
|
||||
serverDependencies {
|
||||
register("PlaceholderAPI") {
|
||||
required = false
|
||||
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
|
||||
}
|
||||
register("MiniPlaceholders") {
|
||||
required = false
|
||||
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
|
||||
}
|
||||
register("LuckPerms") {
|
||||
required = false
|
||||
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
|
||||
}
|
||||
register("PermissionsEx") {
|
||||
required = false
|
||||
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
runServer {
|
||||
minecraftVersion("1.21.4")
|
||||
|
||||
downloadPlugins {
|
||||
hangar("ViaVersion", "5.0.3")
|
||||
hangar("ViaBackwards", "5.0.3")
|
||||
hangar("PlaceholderAPI", "2.11.6")
|
||||
// modrinth("multiverse-core", "4.3.11")
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier.set("")
|
||||
dependsOn(":plugins:fancyvisuals:api:jar")
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
options.release = 21
|
||||
// For cloud-annotations, see https://cloud.incendo.org/annotations/#command-components
|
||||
options.compilerArgs.add("-parameters")
|
||||
}
|
||||
|
||||
javadoc {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
}
|
||||
|
||||
processResources {
|
||||
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
|
||||
val props = mapOf(
|
||||
"description" to project.description,
|
||||
"version" to project.version,
|
||||
"hash" to getCurrentCommitHash(),
|
||||
)
|
||||
|
||||
inputs.properties(props)
|
||||
|
||||
filesMatching("paper-plugin.yml") {
|
||||
expand(props)
|
||||
}
|
||||
|
||||
filesMatching("version.yml") {
|
||||
expand(props)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
|
||||
fun getCurrentCommitHash(): String {
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user