diff --git a/.editorconfig b/.editorconfig index 8638b1c6..e8c198c7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,8 +5,8 @@ insert_final_newline = true indent_style = space indent_size = 4 -[*.{json, yml, yaml}] +[*.{json,json5,yml,yaml,md}] indent_size = 2 -[*.{bat, ps1}] +[*.{bat,ps1}] end_of_line = crlf diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 5db72dd6..00000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ] -} diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 00000000..872a59a6 --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,27 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "separateMajorMinor": true, + "separateMultipleMajor": true, + "separateMinorPatch": true, + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["^\\.sdkmanrc$"], + "matchStrings": ["java=(?.*)-tem\\n"], + "datasourceTemplate": "java-version", + "depNameTemplate": "java", + "versioningTemplate": "regex:^(?\\d+)(\\.(?\\d+))(\\.(?\\d+))$", + "autoReplaceStringTemplate": "java={{{newMajor}}}.{{{newMinor}}}.{{{newPatch}}}-tem" + }, + { + "customType": "regex", + "fileMatch": ["^\\.sdkmanrc$"], + "matchStrings": ["gradle=(?.*)\\n"], + "datasourceTemplate": "gradle-version", + "depNameTemplate": "gradle" + } + ] +}