Kubik/velocity-plugin/build.gradle
2026-01-03 20:39:19 +07:00

48 lines
1.1 KiB
Groovy

plugins {
id("xyz.jpenilla.run-velocity") version "2.3.1"
id("com.gradleup.shadow") version "9.3.0"
}
group = 'ru.dragonestia.kubik'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
}
dependencies {
compileOnly "com.velocitypowered:velocity-api:3.4.0-SNAPSHOT"
implementation project(":client")
annotationProcessor "com.velocitypowered:velocity-api:3.4.0-SNAPSHOT"
}
tasks {
shadowJar {
manifest {
attributes (
"Multi-Release": true,
"Add-Opens": "java.base/java.lang java.base/java.lang.reflect"
)
}
mergeServiceFiles()
}
assemble {
dependsOn shadowJar, processResources
}
runVelocity {
// Configure the Velocity version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
velocityVersion("3.4.0-SNAPSHOT")
}
}