Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions surf-api-velocity/surf-api-velocity-server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
`core-convention`
kotlin("kapt")
id("com.github.gmazzo.buildconfig") version "6.0.9"
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The BuildConfig Gradle plugin version is hard-coded here. This repo already centralizes plugin versions in gradle/libs.versions.toml (see [plugins] entries like plugin-yml-paper / run-paper), so this should be added to the version catalog and applied via alias(libs.plugins.<...>) (or at least version.ref) to keep plugin versions consistent and easier to bump.

Suggested change
id("com.github.gmazzo.buildconfig") version "6.0.9"
id("com.github.gmazzo.buildconfig")

Copilot uses AI. Check for mistakes.
}

dependencies {
Expand Down Expand Up @@ -31,4 +32,9 @@ description = "surf-api-velocity-server"

kapt {
keepJavacAnnotationProcessors = true
}

buildConfig {
packageName("dev.slne.surf.api.velocity.server.generated")
buildConfigField("VERSION", project.version.toString())
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.velocitypowered.api.plugin.PluginContainer
import com.velocitypowered.api.plugin.annotation.DataDirectory
import com.velocitypowered.api.proxy.ProxyServer
import dev.slne.surf.api.core.server.CoreInstance
import dev.slne.surf.api.velocity.server.generated.BuildConfig
import kotlinx.coroutines.runBlocking
import org.slf4j.Logger
import java.nio.file.Path
Expand All @@ -18,9 +19,9 @@ import java.util.concurrent.ExecutorService
@Plugin(
id = "surf-api-velocity",
name = "Surf API Velocity",
version = "3.2.1",
version = BuildConfig.VERSION,
description = "The Surf API Velocity plugin.",
authors = ["twisti"],
authors = ["twisti", "SLNE Development Team"],
dependencies = [Dependency(id = "packetevents"), Dependency(id = "commandapi"), Dependency(id = "luckperms")]
)
class VelocityMain @Inject constructor(
Expand Down