Initial commit
This commit is contained in:
48
gradle/libs.versions.toml
Normal file
48
gradle/libs.versions.toml
Normal 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" }
|
||||
11
gradle/module-resources/bungeecord.kts
Normal file
11
gradle/module-resources/bungeecord.kts
Normal file
@@ -0,0 +1,11 @@
|
||||
plugins {
|
||||
alias(libs.plugins.run.waterfall)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(libs.minecraft.proxy.bungeecord)
|
||||
}
|
||||
|
||||
tasks.runWaterfall {
|
||||
waterfallVersion("1.20")
|
||||
}
|
||||
15
gradle/module-resources/folia.kts
Normal file
15
gradle/module-resources/folia.kts
Normal 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")
|
||||
}
|
||||
}
|
||||
13
gradle/module-resources/paper.kts
Normal file
13
gradle/module-resources/paper.kts
Normal 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")
|
||||
}
|
||||
10
gradle/module-resources/plugin.yml
Normal file
10
gradle/module-resources/plugin.yml
Normal 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
|
||||
13
gradle/module-resources/spigot.kts
Normal file
13
gradle/module-resources/spigot.kts
Normal 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")
|
||||
}
|
||||
22
gradle/module-resources/tools.kts
Normal file
22
gradle/module-resources/tools.kts
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
gradle/module-resources/velocity.kts
Normal file
13
gradle/module-resources/velocity.kts
Normal 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())
|
||||
}
|
||||
11
gradle/module-resources/waterfall.kts
Normal file
11
gradle/module-resources/waterfall.kts
Normal 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
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
7
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
7
gradle/wrapper/gradle-wrapper.properties
vendored
Normal 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
|
||||
Reference in New Issue
Block a user