Skip to content

Apply latest config#926

Merged
alexander-yevsyukov merged 6 commits intomasterfrom
apply-new-publishing
Apr 3, 2026
Merged

Apply latest config#926
alexander-yevsyukov merged 6 commits intomasterfrom
apply-new-publishing

Conversation

@alexander-yevsyukov
Copy link
Copy Markdown
Contributor

This PR applies latest config bringing latest buildSrc changes to this repository.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71b721d863

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

private fun updatePluginVersion(file: File, id: String, version: String) {
val content = file.readText()
// Regex to match: id("plugin-id") version "version-number"
val regex = """id\("$id"\)\s+version\s+"([^"]+)"""".toRegex()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Escape plugin ID when compiling replacement regex

The regex in updatePluginVersion() interpolates pluginId directly, so metacharacters in valid plugin IDs (notably .) are treated as regex wildcards. This can rewrite unrelated plugin declarations that merely match the wildcard pattern (for example, id("ioXspineXvalidation") when updating io.spine.validation), causing incorrect version bumps across build.gradle.kts files. Build the pattern with Regex.escape(id) before interpolation so plugin IDs are matched literally.

Useful? React with 👍 / 👎.

@alexander-yevsyukov alexander-yevsyukov merged commit 7387993 into master Apr 3, 2026
5 of 6 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the apply-new-publishing branch April 3, 2026 16:04
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