Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

chore: automatically replace version#13

Merged
ItsKev merged 6 commits intomainfrom
chore/automatic-version
Jan 2, 2026
Merged

chore: automatically replace version#13
ItsKev merged 6 commits intomainfrom
chore/automatic-version

Conversation

@lusu007
Copy link
Contributor

@lusu007 lusu007 commented Jan 2, 2026

Pull Request

Description

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • ♻️ Refactoring
  • 📚 Documentation
  • 🔧 Chore

Related Issues

  • Fixes #

Testing

  • Unit tests pass
  • Manual testing completed
  • New tests added for new functionality

Checklist

  • I have performed a self-review of my own code
  • Tests have been added/updated and pass (if needed)
  • Documentation has been updated (if needed)

@lusu007 lusu007 requested a review from ItsKev January 2, 2026 20:15
@lusu007 lusu007 self-assigned this Jan 2, 2026
Copilot AI review requested due to automatic review settings January 2, 2026 20:15
Copy link

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

This PR implements automatic version replacement for both Velocity and Paper plugin builds, eliminating the need to manually update version strings in plugin metadata.

  • Adds build-time version injection for Velocity plugin using the buildinfo Gradle plugin
  • Implements version placeholder replacement for Paper plugin using Gradle's processResources task
  • Updates .gitignore to exclude generated Kotlin build artifacts

Reviewed changes

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

Show a summary per file
File Description
velocity/src/main/kotlin/gg/grounds/GroundsPluginServerDiscovery.kt Expands @plugin annotation to include version from generated BuildInfo class and adds additional metadata (description, authors, url)
velocity/build.gradle.kts Adds buildinfo plugin to generate BuildInfo class with version property and configures task dependencies to ensure BuildInfo is generated before Kotlin compilation/annotation processing
paper/src/main/resources/plugin.yml Replaces hardcoded version string with ${VERSION} placeholder for build-time substitution
paper/build.gradle.kts Configures processResources task to expand version placeholder (but has incorrect file matching pattern)
.gitignore Adds .kotlin directory to ignore generated Kotlin build artifacts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lusu007 lusu007 force-pushed the chore/automatic-version branch 2 times, most recently from 297fb94 to fbd4087 Compare January 2, 2026 20:34
@lusu007 lusu007 force-pushed the chore/automatic-version branch from fbd4087 to 02dd159 Compare January 2, 2026 20:35
@ItsKev ItsKev merged commit 6cf23ed into main Jan 2, 2026
2 checks passed
@ItsKev ItsKev deleted the chore/automatic-version branch January 2, 2026 21:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments