1
0

Initial commit

This commit is contained in:
2024-02-12 17:08:30 +00:00
commit fa5f615562
18 changed files with 875 additions and 0 deletions

48
gradle/libs.versions.toml Normal file
View File

@@ -0,0 +1,48 @@
[versions]
kotlin = "1.9.22"
shadow = "8.1.1"
run = "2.2.2"
paperweight = "1.5.11"
# Minecraft Software
spigot = "1.20.2-experimental-SNAPSHOT"
paper = "1.20.2-R0.1-SNAPSHOT"
folia = "1.20.2-R0.1-SNAPSHOT"
bungeecord = "1.20-R0.2-SNAPSHOT"
waterfall = "1.20-R0.2-SNAPSHOT"
velocity = "3.2.0-SNAPSHOT"
# Plugin Values
plugin-spigot = "1.20"
plugin-paper = "1.20"
plugin-folia = "1.20"
plugin-bungeecord = "1.20"
plugin-waterfall = "1.20"
[libraries]
kotlin-gradleplugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
# Minecraft Software Dependencies
minecraft-server-spigot = { group = "org.spigotmc", name = "spigot-api", version.ref = "spigot" }
minecraft-server-paper = { group = "io.papermc.paper", name = "paper-api", version.ref = "paper" }
minecraft-server-folia = { group = "dev.folia", name = "folia-api", version.ref = "folia" }
minecraft-proxy-bungeecord = { group = "net.md-5", name = "bungeecord-api", version.ref = "bungeecord" }
minecraft-proxy-waterfall = { group = "io.github.waterfallmc", name = "waterfall-api", version.ref = "waterfall" }
minecraft-proxy-velocity = { group = "com.velocitypowered", name = "velocity-api", version.ref = "velocity" }
# Minecraft Plugin Dependencies
minecraft-plugin-eralogger = { group = "net.eratiem", name = "eralogger", version = "1.0.0.alpha1" }
snakeyaml = { group = "org.snakeyaml", name = "snakeyaml-engine", version = "2.7" }
[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
paperweight-userdev = { id = 'io.papermc.paperweight.userdev', version.ref = "paperweight" }
# Run
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run" }
run-velocity = { id = "xyz.jpenilla.run-velocity", version.ref = "run" }
run-waterfall = { id = "xyz.jpenilla.run-waterfall", version.ref = "run" }

View File

@@ -0,0 +1,11 @@
plugins {
alias(libs.plugins.run.waterfall)
}
dependencies {
compileOnly(libs.minecraft.proxy.bungeecord)
}
tasks.runWaterfall {
waterfallVersion("1.20")
}

View File

@@ -0,0 +1,15 @@
plugins {
alias(libs.plugins.run.paper)
}
dependencies {
compileOnly(libs.minecraft.server.folia)
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
}
tasks {
runPaper.folia.registerTask {
minecraftVersion("1.20.2")
}
}

View File

@@ -0,0 +1,13 @@
plugins {
alias(libs.plugins.run.paper)
}
dependencies {
compileOnly(libs.minecraft.server.paper)
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
}
tasks.runServer {
minecraftVersion("1.20.2")
}

View File

@@ -0,0 +1,10 @@
name: $plugin_name
description: $plugin_description
version: $plugin_version
main: $plugin_main_class
api-version: $plugin_api_version
prefix: $plugin_name
depend: $plugin_dependencies
softDepends: $plugin_softdependencies
authors: $plugin_authors
commands: $plugin_commands

View File

@@ -0,0 +1,13 @@
plugins {
alias(libs.plugins.run.paper)
}
dependencies {
compileOnly(libs.minecraft.server.spigot)
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT")
}
tasks.runServer {
minecraftVersion("1.20.2")
}

View File

@@ -0,0 +1,22 @@
plugins {
id("maven-publish")
}
if (properties["enableToolsMavenDependency"] == "true") {
publishing {
publications {
create<MavenPublication>("Tools") {
groupId = project.group.toString()
artifactId = rootProject.name.lowercase()
version = project.version.toString()
artifact(rootProject.ext["toolsArtifact"] as TaskProvider<*>)
}
repositories {
add(rootProject.ext["bitBuildArtifactoryPublish"] as MavenArtifactRepository)
add(rootProject.ext["githubPackagesPublish"] as MavenArtifactRepository)
}
}
}
}

View File

@@ -0,0 +1,13 @@
plugins {
alias(libs.plugins.run.velocity)
id(libs.plugins.kotlin.kapt.get().pluginId)
}
dependencies {
compileOnly(libs.minecraft.proxy.velocity)
kapt(libs.minecraft.proxy.velocity)
}
tasks.runVelocity {
velocityVersion(libs.versions.velocity.get())
}

View File

@@ -0,0 +1,11 @@
plugins {
alias(libs.plugins.run.waterfall)
}
dependencies {
compileOnly(libs.minecraft.proxy.waterfall)
}
tasks.runWaterfall {
waterfallVersion("1.20")
}

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists