dfdf2b019a
Add internal/gradle package with ReadVersion and WriteVersion for build.gradle (Groovy DSL, single-quoted) and build.gradle.kts (Kotlin DSL, double-quoted). Quote style is preserved on write. regexp.QuoteMeta ensures version strings with dots or special characters are safe. Config follows the established multi-value pattern: - gradle.build_file: single path (opt-in, no default) - gradle.build_files: list for multi-module projects (overrides build_file) - --gradle flag overrides build_file and clears build_files 100% per-package statement coverage maintained across all 13 packages; FuzzReadVersion and FuzzWriteVersion added per fuzzing guidelines. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
# .releaser.yml — configuration for git.k3nny.fr/releaser
|
|
# All fields are optional. Uncomment and adjust what you need.
|
|
# CLI flags always take precedence over values set here.
|
|
|
|
git:
|
|
# Prefix prepended to every version tag.
|
|
# tag_prefix: "v"
|
|
|
|
# Regex that identifies release branches. Must contain exactly two capture
|
|
# groups: group 1 = major version, group 2 = minor version.
|
|
# branch_pattern: "^(?:.*/)?release/(\\d+)\\.(\\d+)$"
|
|
|
|
# Template for the version-bump commit message.
|
|
# {version} is replaced with the full tag name (e.g. "v1.2.3").
|
|
# commit_message: "chore(release): {version} [skip ci]"
|
|
|
|
# Override the git commit author. When omitted, releaser reads user.name
|
|
# and user.email from the repository's git config.
|
|
# author_name: ""
|
|
# author_email: ""
|
|
|
|
# Limit which commit types trigger a release (default: fix, feat, breaking).
|
|
# releasable_types:
|
|
# - fix
|
|
# - feat
|
|
# - breaking
|
|
|
|
# Configure which version component each commit type bumps.
|
|
# Valid values: "patch" (default) or "minor".
|
|
# bump_rules:
|
|
# breaking: "minor"
|
|
# feat: "patch"
|
|
# fix: "patch"
|
|
|
|
# maven:
|
|
# Single pom.xml path, relative to the repository root.
|
|
# pom_path: "pom.xml"
|
|
|
|
# Multiple pom.xml paths for multi-module projects (overrides pom_path).
|
|
# pom_paths:
|
|
# - "pom.xml"
|
|
# - "module-a/pom.xml"
|
|
|
|
# node:
|
|
# Single package.json path (node processing is opt-in — no default).
|
|
# package_json: "package.json"
|
|
|
|
# Multiple package.json paths for monorepos (overrides package_json).
|
|
# package_jsons:
|
|
# - "packages/frontend/package.json"
|
|
# - "packages/backend/package.json"
|
|
|
|
# gradle:
|
|
# Single build.gradle or build.gradle.kts path (opt-in — no default).
|
|
# Both Groovy DSL (single-quoted) and Kotlin DSL (double-quoted) are supported.
|
|
# build_file: "build.gradle"
|
|
|
|
# Multiple build files for multi-module projects (overrides build_file).
|
|
# build_files:
|
|
# - "build.gradle"
|
|
# - "module-a/build.gradle"
|
|
# - "module-b/build.gradle"
|
|
|
|
gitlab:
|
|
# GitLab instance URL. Falls back to the CI_SERVER_URL environment variable.
|
|
# url: "https://gitlab.example.com"
|
|
|
|
# Personal or CI access token with api scope.
|
|
# Falls back to the GITLAB_TOKEN environment variable.
|
|
# Tip: never commit a real token here — use the environment variable instead.
|
|
# token: ""
|
|
|
|
# Numeric project ID or "namespace/project" path.
|
|
# Falls back to CI_PROJECT_ID, then CI_PROJECT_PATH environment variables.
|
|
# project: ""
|