Skip to content

chore: update Gradle configuration and publish.yml for improved repos…#45

Merged
ammodev merged 1 commit intoversion/26.1from
version/26.1.1
Apr 5, 2026
Merged

chore: update Gradle configuration and publish.yml for improved repos…#45
ammodev merged 1 commit intoversion/26.1from
version/26.1.1

Conversation

@ammodev
Copy link
Copy Markdown
Contributor

@ammodev ammodev commented Apr 5, 2026

…itory management

Copilot AI review requested due to automatic review settings April 5, 2026 15:48
@ammodev ammodev merged commit 39115dc into version/26.1 Apr 5, 2026
1 check failed
@ammodev ammodev deleted the version/26.1.1 branch April 5, 2026 15:48
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 Gradle/plugin repository configuration and adjusts the GitHub Actions publish workflow, aiming to improve repository management and publishing behavior for the multi-module surf-redis build.

Changes:

  • Switched custom Maven repository base URL from repo.slne.dev to reposilite.slne.dev.
  • Replaced pinned plugin/plugin-classpath versions with fully dynamic + versions.
  • Removed the GitHub Actions job environment: production association.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
surf-redis-api/build.gradle.kts Comments out task-disabling logic related to publishing (leaving an effectively no-op afterEvaluate block).
settings.gradle.kts Updates pluginManagement repository URL and changes settings plugin version to dynamic +.
build.gradle.kts Updates buildscript repository URL and changes buildscript classpath dependency to dynamic + (and different group).
.github/workflows/publish.yml Removes environment: production from the publish job, affecting protections/secrets scoping.

Comment on lines 56 to 66
/**
* Only publish the shadow variant
*/
afterEvaluate {
tasks.named("publishPluginMavenPublicationToMaven-releasesRepository") {
enabled = false
}
tasks.named("publishPluginMavenPublicationToMavenLocal") {
enabled = false
}
// tasks.named("publishPluginMavenPublicationToMaven-releasesRepository") {
// enabled = false
// }
// tasks.named("publishPluginMavenPublicationToMavenLocal") {
// enabled = false
// }
}
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

The afterEvaluate {} block is now effectively dead code (only commented-out task configuration) while the preceding comment still states "Only publish the shadow variant". Either remove this block/comment entirely, or reintroduce an explicit configuration that enforces publishing only the intended publication(s) to avoid future confusion and accidental publishing of extra artifacts.

Copilot uses AI. Check for mistakes.
Comment thread settings.gradle.kts
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
id("dev.slne.surf.api.gradle.settings") version "26.1+"
id("dev.slne.surf.api.gradle.settings") version "+"
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

Using a dynamic Gradle plugin version (version "+") makes builds non-reproducible and can unexpectedly break CI when a new settings plugin release is published. Pin an explicit version (or a constrained dynamic range like 26.1+ if you really need it) and consider enabling dependency/plugin locking for CI stability.

Suggested change
id("dev.slne.surf.api.gradle.settings") version "+"
id("dev.slne.surf.api.gradle.settings") version "1.21.11"

Copilot uses AI. Check for mistakes.
@@ -17,7 +17,6 @@ env:
jobs:
publish:
runs-on: ubuntu-latest
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

Removing the environment: production binding changes how this workflow is protected (required reviewers) and which environment-scoped secrets/vars are available. If production environment protection is still desired, keep the environment; otherwise ensure any needed secrets are repository-scoped and that this change doesn’t weaken release/publish safeguards.

Suggested change
runs-on: ubuntu-latest
runs-on: ubuntu-latest
environment: production

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