Skip to content

Commit

Permalink
Merge pull request #236 from zero88/chore/renovate-for-sdkman
Browse files Browse the repository at this point in the history
chore(renovate): add renovate for sdkman
  • Loading branch information
zero88 authored Jun 15, 2024
2 parents 4d0bfd5 + 8a02431 commit b501879
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.10-tem
gradle=7.6.4
20 changes: 20 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,25 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"separateMajorMinor": true,
"separateMultipleMajor": true,
"separateMinorPatch": true,
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^\\.sdkmanrc$"],
"matchStrings": ["java=(?<currentValue>.*)-tem\\n"],
"datasourceTemplate": "java-version",
"depNameTemplate": "java",
"versioningTemplate": "regex:^(?<major>\\d+)?(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?$"
},
{
"customType": "regex",
"fileMatch": ["^\\.sdkmanrc$"],
"matchStrings": ["gradle=(?<currentValue>.*)\\n"],
"datasourceTemplate": "gradle-version",
"depNameTemplate": "gradle"
}
]
}

0 comments on commit b501879

Please sign in to comment.