Renovate configuration for Polarion Java Repos | Read-only mirror of https://github.com/SchweizerischeBundesbahnen/casc-renovate-preset-polarion-java — SBB. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Adam R. 6c9ff58e9c
feat(maven): look up versions in the public JFrog repository (#26)
* feat(maven): look up versions in the public JFrog repository

The SBB Polarion open-source extensions move their releases from Maven
Central to the public repository sbb.jfrog.io/artifactory/polarion-opensource-mvn.
Without it in registryUrls, Renovate stops proposing their updates.

* docs: describe the JFrog repository as a migration target

List all three Maven registries consistently and state that the extensions are moving to the public JFrog repository rather than already published there.
2026-12-01 18:53:57 +01:00
.pre-commit-config.yaml chore(deps): update pre-commit hook commitizen-tools/commitizen to v4.20.1 2026-11-27 10:05:03 +00:00
.yamlfix.toml chore: add initial implementation 2024-06-05 16:18:04 +02:00
CLAUDE.md feat(maven): look up versions in the public JFrog repository (#26) 2026-12-01 18:53:57 +01:00
default.json feat(maven): look up versions in the public JFrog repository (#26) 2026-12-01 18:53:57 +01:00
LICENSE Initial commit 2024-06-05 15:53:14 +02:00
README.md feat(maven): look up versions in the public JFrog repository (#26) 2026-12-01 18:53:57 +01:00
renovate.json Update renovate.json 2025-04-05 13:30:39 +02:00

casc-renovate-preset-polarion-java

Renovate preset for Polarion Java repositories on GitHub

Extends casc-renovate-preset-polarion (shared base) and adds Maven-specific configuration.


Quick Start

Add this to your repository's renovate.json:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>SchweizerischeBundesbahnen/casc-renovate-preset-polarion-java"]
}

Supported Ecosystems

Ecosystem Package Manager Lock File Auto-Update
Java Maven (pom.xml) — Minor/patch (3-day wait)
Node.js npm (package.json) package-lock.json Minor/patch (3-day wait)
Pre-commit .pre-commit-config.yaml — All updates incl. major (grouped)
GitHub Actions .github/workflows/*.yml — All updates incl. major (grouped)

All managers are enabled — unlike the Python/Docker presets, no enabledManagers whitelist is used. Maven-specific rules are configured explicitly while all other managers inherit sensible defaults, keeping the preset future-proof.


Automerge Strategy

Inherited from the shared base preset. See base preset for full details.

Update Type Automerged? Stabilization Notes
Minor/patch ✅ Yes 3 days Requires CI to pass
Major ❌ No — Manual review required
GitHub Actions (any incl. major) ✅ Yes 3 days Grouped into one branch/PR
Pre-commit hooks (any incl. major) ✅ Yes 3 days Grouped into one branch/PR, ignoreTests: true
SBB internal packages (minor/patch) ✅ Yes 0 days ch.sbb.* and python-sbb-polarion
Security vulnerabilities ❌ No 0 days Labeled security, priority queue
Lock file maintenance ✅ Yes — Monday before 4am

Maven Configuration

Registries

Maven packages are sourced from:

  • GitHub Packages (maven.pkg.github.com/SchweizerischeBundesbahnen) — internal SBB packages
  • Public JFrog repository (sbb.jfrog.io/artifactory/polarion-opensource-mvn) — SBB Polarion open-source extensions, readable without authentication
  • Maven Central (repo.maven.apache.org/maven2) — open-source dependencies

Version Filtering

Unstable and vendor-specific versions are blocked:

Pattern Example Reason
-SNAPSHOT$ 1.0-SNAPSHOT Unstable builds
-redhat-, -jboss- 1.0-redhat-1 Vendor forks
-jenkins- 1.0-jenkins-1 CI-specific builds
-atlassian- 1.0-atlassian-1 Vendor forks
-tc$ 1.0-tc Tomcat variants
-NODEP$ 1.0-NODEP No-dependency variants

Provided/Runtime Scope

provided and runtime scope dependencies are disabled by default (except ch.sbb.* packages) to avoid unwanted updates to container-provided dependencies.


Configuration Examples

Override Automerge for Specific Package

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>SchweizerischeBundesbahnen/casc-renovate-preset-polarion-java"],
  "packageRules": [
    {
      "matchPackageNames": ["spring-boot"],
      "automerge": false
    }
  ]
}

Custom Schedule

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["github>SchweizerischeBundesbahnen/casc-renovate-preset-polarion-java"],
  "schedule": ["after 10pm every weekday"]
}

Troubleshooting

Maven snapshots appearing

This shouldn't happen — preset filters snapshots. If you see them:

  1. Check preset is correctly extended
  2. Verify no local override of allowedVersions
  3. Open an issue in this repository

Developer Setup

# JSON syntax check
jq empty default.json

# Renovate schema validation
npx -p renovate renovate-config-validator default.json

# Run all pre-commit hooks
pre-commit run --all-files

Deployment

Changes to default.json are live immediately when merged to main. All consuming repositories receive updates on the next Renovate run — there is no staging environment.

Changes to the shared base preset also affect all repos using this preset.


Maintained by: SBB Polarion Team