|
1 | 1 | {
|
2 |
| - "enabled": true, |
3 |
| - "extends": [ |
4 |
| - "group:recommended", |
5 |
| - "workarounds:all" |
| 2 | + enabled: true, |
| 3 | + extends: [ |
| 4 | + 'group:recommended', |
| 5 | + 'workarounds:all', |
6 | 6 | ],
|
7 |
| - "dependencyDashboard": "true", |
8 |
| - "branchConcurrentLimit": 0, |
9 |
| - "prConcurrentLimit": 0, |
10 |
| - "prHourlyLimit": 0, |
11 |
| - "rebaseWhen": "conflicted", |
12 |
| - "packageRules": [ |
| 7 | + dependencyDashboard: true, |
| 8 | + branchConcurrentLimit: 0, |
| 9 | + prConcurrentLimit: 0, |
| 10 | + prHourlyLimit: 0, |
| 11 | + rebaseWhen: 'conflicted', |
| 12 | + packageRules: [ |
13 | 13 | // Define repositories
|
14 | 14 | {
|
15 |
| - "matchDatasources": ["maven"], |
16 |
| - "registryUrls": [ |
| 15 | + matchDatasources: [ |
| 16 | + 'maven', |
| 17 | + ], |
| 18 | + registryUrls: [ |
17 | 19 | // Default kernel repositories
|
18 |
| - "https://repo.maven.apache.org/maven2/", |
19 |
| - "https://jitpack.io/", |
| 20 | + 'https://repo.maven.apache.org/maven2/', |
| 21 | + 'https://jitpack.io/', |
20 | 22 | // Custom repositories from descriptors must be added here
|
21 |
| - "https://oss.sonatype.org/service/local/repo_groups/public/content", |
22 |
| - "https://repo.osgeo.org/repository/release", |
23 |
| - "https://repo.kotlin.link", |
24 |
| - "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers", |
25 |
| - "https://s01.oss.sonatype.org/content/repositories/snapshots", |
26 |
| - "https://packages.jetbrains.team/maven/p/kds/kotlin-ds-maven", |
27 |
| - ] |
| 23 | + 'https://oss.sonatype.org/service/local/repo_groups/public/content', |
| 24 | + 'https://repo.osgeo.org/repository/release', |
| 25 | + 'https://repo.kotlin.link', |
| 26 | + 'https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers', |
| 27 | + 'https://s01.oss.sonatype.org/content/repositories/snapshots', |
| 28 | + 'https://packages.jetbrains.team/maven/p/kds/kotlin-ds-maven', |
| 29 | + ], |
28 | 30 | },
|
29 | 31 | // Ignore -dev versions, because in maven 1.0 < 1.0-dev
|
30 | 32 | {
|
31 |
| - "matchPackagePatterns": [".*"], |
32 |
| - "allowedVersions": "!/[-.]dev/", |
| 33 | + allowedVersions: '!/[-.]dev/', |
| 34 | + matchPackageNames: [ |
| 35 | + '/.*/', |
| 36 | + ], |
33 | 37 | },
|
34 | 38 | // Allow -dev versions if it's already using one
|
35 | 39 | {
|
36 |
| - "matchCurrentValue": "/[-.]dev/", |
37 |
| - "allowedVersions": "/.*/", |
| 40 | + matchCurrentValue: '/[-.]dev/', |
| 41 | + allowedVersions: '/.*/', |
38 | 42 | },
|
39 |
| - // Ignore pushed by mistake version |
| 43 | + // Ignore pushed by mistake versions |
40 | 44 | {
|
41 |
| - "matchPackageNames": ["org.jetbrains.kotlinx:dataframe"], |
42 |
| - "allowedVersions": "!/[-.]dev|^1548$|^1727$/", |
| 45 | + matchPackageNames: [ |
| 46 | + 'org.jetbrains.kotlinx:dataframe', |
| 47 | + ], |
| 48 | + allowedVersions: '!/[-.]dev|^1548$|^1727$/', |
43 | 49 | },
|
44 | 50 | // Ignore pushed by mistake versions
|
45 | 51 | {
|
46 |
| - "matchPackageNames": ["com.github.gabrielfeo:gradle-enterprise-api-kotlin"], |
47 |
| - "allowedVersions": "!/^0\\.999.*$/", |
| 52 | + matchPackageNames: [ |
| 53 | + 'com.github.gabrielfeo:gradle-enterprise-api-kotlin', |
| 54 | + ], |
| 55 | + allowedVersions: '!/^0\\.999.*$/', |
48 | 56 | },
|
49 | 57 | ],
|
50 |
| - "regexManagers": [ |
| 58 | + customManagers: [ |
51 | 59 | // Matches dependencies with hardcoded versions (no interpolated properties)
|
52 | 60 | {
|
53 |
| - "datasourceTemplate": "maven", |
54 |
| - "versioningTemplate": "maven", |
55 |
| - "fileMatch": [".*\\.json5"], |
56 |
| - "matchStrings": [ |
57 |
| - // https://regex101.com/r/mex9HU/1 |
| 61 | + customType: 'regex', |
| 62 | + datasourceTemplate: 'maven', |
| 63 | + versioningTemplate: 'maven', |
| 64 | + fileMatch: [ |
| 65 | + '.*\\.json5', |
| 66 | + ], |
| 67 | + matchStrings: [ |
58 | 68 | '^\\s*"(?<depName>[^":\\$]+:[^":\\$]+):(?<currentValue>[^":\\$]+)"',
|
59 |
| - ] |
| 69 | + ], |
60 | 70 | },
|
61 | 71 | // Matches properties having a "*-renovate-hint" property below them with value "update: package=group:artifact"
|
62 | 72 | {
|
63 |
| - "datasourceTemplate": "maven", |
64 |
| - "versioningTemplate": "maven", |
65 |
| - "fileMatch": [".*\\.json"], |
66 |
| - "matchStrings": [ |
67 |
| - // https://regex101.com/r/7ESmC8/6 |
| 73 | + customType: 'regex', |
| 74 | + datasourceTemplate: 'maven', |
| 75 | + versioningTemplate: 'maven', |
| 76 | + fileMatch: [ |
| 77 | + '.*\\.json', |
| 78 | + ], |
| 79 | + matchStrings: [ |
68 | 80 | '(?:{ *"name": *)?".+?"[:,] *(?:"value": *)?"(?<currentValue>.+?)"(?: *})?,\\s*(?:{ *"name": *)?"\\S+-renovate-hint"[:,] *(?:"value": *)?"update: +package=(?<depName>\\S+?)"',
|
69 |
| - ] |
| 81 | + ], |
70 | 82 | },
|
71 | 83 | ],
|
72 | 84 | }
|
0 commit comments