Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To include the Renovate Bot package rule in Maven for making minor updates for the jre11 version, follow these steps:

  1. Add the Renovate Bot Maven dependency to your project's pom.xml file:
<dependency>
    <groupId>org.renovatebot</groupId>
    <artifactId>renovate-maven-plugin</artifactId>
    <version>21.8.0</version>
</dependency>
  1. Create a renovate.json configuration file in the root directory of your project. In this file, specify the package rules for which you want to receive minor updates for the jre11 version, for example:
{
  "extends": [
    "config:base"
  ],
  "platform": "github",
  "depTypes": [
    "maven"
  ],
  "rangeStrategy": "auto",
  "onboarding": false,
  "maven": {
    "enabled": true
  },
  "packageRules": [
    {
      "matchDepTypes": ["direct"],
      "matchUpdateTypes": ["minor"],
      "groupName": "minor-jre11-updates",
      "excludeVersions": ["[15,16)"],
      "packagePatterns": ["foo:*", "bar:*"]
    }
  ]
}
  1. Finally, run the Maven renovate:renovate command to trigger Renovate Bot to scan your project, analyze the package rules, and generate pull requests for any available updates.

Note: For security reasons, it is recommended to run Renovate Bot on a forked repository rather than directly on your main project repository.