Skip to content

🔧 chore(build): add buildConfig plugin and update version in VelocityMain#318

Merged
twisti-dev merged 1 commit intoversion/26.1from
chore/add-build-config-plugin
Apr 20, 2026
Merged

🔧 chore(build): add buildConfig plugin and update version in VelocityMain#318
twisti-dev merged 1 commit intoversion/26.1from
chore/add-build-config-plugin

Conversation

@twisti-dev
Copy link
Copy Markdown
Contributor

  • include com.github.gmazzo.buildconfig plugin version 6.0.9 in build.gradle.kts
  • update plugin version in VelocityMain to use BuildConfig.VERSION
  • add authors to VelocityMain plugin metadata

…Main

- include com.github.gmazzo.buildconfig plugin version 6.0.9 in build.gradle.kts
- update plugin version in VelocityMain to use BuildConfig.VERSION
- add authors to VelocityMain plugin metadata
@twisti-dev twisti-dev self-assigned this Apr 20, 2026
Copilot AI review requested due to automatic review settings April 20, 2026 16:26
@twisti-dev twisti-dev merged commit 6175835 into version/26.1 Apr 20, 2026
6 checks passed
@twisti-dev twisti-dev deleted the chore/add-build-config-plugin branch April 20, 2026 16:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Velocity server module to derive plugin metadata version from a generated BuildConfig, and enriches the plugin authors metadata.

Changes:

  • Add com.github.gmazzo.buildconfig usage to generate a BuildConfig.VERSION constant.
  • Update VelocityMain plugin annotation to use BuildConfig.VERSION instead of a hard-coded version.
  • Expand Velocity plugin authors metadata.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
surf-api-velocity/surf-api-velocity-server/src/main/kotlin/dev/slne/surf/api/velocity/server/VelocityMain.kt Switches plugin annotation version to BuildConfig.VERSION and updates authors list.
surf-api-velocity/surf-api-velocity-server/build.gradle.kts Applies BuildConfig plugin and configures generation of a VERSION field in a generated package.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants