From a113b4b26e1fc0ebb09d3f913cc6d987478e0412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kozak?= Date: Fri, 28 Aug 2026 13:33:12 +0200 Subject: [PATCH] Generalise README version bumping to any library Fold the README install snippets into the two existing project.scala custom managers instead of a commons-specific one, and teach both the sbt coordinate syntax: - manager 1 (cross-built): scala-cli `org::name[:]:ver` and sbt `"org" %% "name" % "ver"` - manager 2 (plain Maven): scala-cli `org:name:ver` and sbt `"org" % "name" % "ver"` Any dependency shown in a README install block is now tracked, which also makes the synced renovate.json useful in the downstream repos where the snippet names a different artifact. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_019awuXm5QZgXajLw3PvGo1s --- renovate.json | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/renovate.json b/renovate.json index 66f4131..235160a 100644 --- a/renovate.json +++ b/renovate.json @@ -18,21 +18,24 @@ "customManagers": [ { "customType": "regex", - "description": "scala-cli cross-built deps (::) in project.scala", - "managerFilePatterns": ["/(^|/)project\\.scala$/"], + "description": "Scala cross-built deps (scala-cli :: / sbt %%) in project.scala and README", + "managerFilePatterns": ["/(^|/)project\\.scala$/", "/(^|/)README\\.md$/"], "matchStrings": [ - "//> using (?:test\\.)?dep (?[\\w.-]+)::(?[\\w.-]+):{1,2}(?[\\w.-]+)" + "//> using (?:test\\.)?dep (?[\\w.-]+)::(?[\\w.-]+):{1,2}(?[\\w.-]+)", + "\"(?[\\w.-]+)\" %% \"(?[\\w.-]+)\" % \"(?[\\w.-]+)\"" ], "packageNameTemplate": "{{groupId}}:{{artifactId}}_3", "datasourceTemplate": "sbt-package" }, { "customType": "regex", - "description": "scala-cli plain maven-coordinate deps in project.scala", - "managerFilePatterns": ["/(^|/)project\\.scala$/"], + "description": "Plain Maven-coordinate deps (scala-cli : / sbt %) in project.scala and README", + "managerFilePatterns": ["/(^|/)project\\.scala$/", "/(^|/)README\\.md$/"], "matchStrings": [ - "//> using (?:test\\.)?dep (?[\\w.-]+:[\\w.-]+):(?[\\w.-]+)" + "//> using (?:test\\.)?dep (?[\\w.-]+):(?[\\w.-]+):(?[\\w.-]+)", + "\"(?[\\w.-]+)\" % \"(?[\\w.-]+)\" % \"(?[\\w.-]+)\"" ], + "packageNameTemplate": "{{groupId}}:{{artifactId}}", "datasourceTemplate": "maven" }, { @@ -70,17 +73,6 @@ "packageNameTemplate": "scala-native/scala-native", "datasourceTemplate": "github-releases", "extractVersionTemplate": "^v(?.+)$" - }, - { - "customType": "regex", - "description": "commons version in README install snippets", - "managerFilePatterns": ["/^README\\.md$/"], - "matchStrings": [ - "com\\.halotukozak::commons::(?[\\w.-]+)", - "\"com\\.halotukozak\" %% \"commons\" % \"(?[\\w.-]+)\"" - ], - "depNameTemplate": "com.halotukozak:commons_3", - "datasourceTemplate": "maven" } ] }