gradle - How to make Dependabot to not update from SNAPSHOT? - Stack Overflow

Let's imaging I have a dependency like:mavenBom ".springframework:spring-framework-bom:6.2.0

Let's imaging I have a dependency like:

mavenBom ".springframework:spring-framework-bom:6.2.0-SNAPSHOT"

The Spring Framework has just released 6.2.0 GA and just after that published 6.2.1-SNAPSHOT.

Ideally I would like Dependabot to suggest me an update to 6.2.0, but that's different story.

Right now I just don't want it to update from 6.2.0-SNAPSHOT to 6.2.1-SNAPSHOT.

What kind of config I could apply to skip such a version pattern from updating?

My current one is like this:

ignore:
  - dependency-name: '*'
    update-types:
      - version-update:semver-major
      - version-update:semver-minor 

Doesn't look like versions option can accept something like *-SNAPSHOT: .yml-file#specifying-dependencies-and-versions-to-ignore

UPDATE

Well, apparently there is no way for now. Found this old GH issue:

Let's imaging I have a dependency like:

mavenBom ".springframework:spring-framework-bom:6.2.0-SNAPSHOT"

The Spring Framework has just released 6.2.0 GA and just after that published 6.2.1-SNAPSHOT.

Ideally I would like Dependabot to suggest me an update to 6.2.0, but that's different story.

Right now I just don't want it to update from 6.2.0-SNAPSHOT to 6.2.1-SNAPSHOT.

What kind of config I could apply to skip such a version pattern from updating?

My current one is like this:

ignore:
  - dependency-name: '*'
    update-types:
      - version-update:semver-major
      - version-update:semver-minor 

Doesn't look like versions option can accept something like *-SNAPSHOT: https://docs.github/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#specifying-dependencies-and-versions-to-ignore

UPDATE

Well, apparently there is no way for now. Found this old GH issue: https://github/dependabot/dependabot-core/issues/7885

Share Improve this question edited Nov 19, 2024 at 18:57 Artem Bilan asked Nov 19, 2024 at 18:02 Artem BilanArtem Bilan 122k11 gold badges102 silver badges129 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0
version: 2
updates:
  - package-ecosystem: "maven"  # Use 'maven' or 'gradle' as per your project
    directory: "/"  # Adjust to your project directory if needed
    schedule:
      interval: "weekly"  # Set to 'daily', 'weekly', or 'monthly'
    versioning-strategy: "increase"  # Prevent SNAPSHOT versions from being picked
    ignore:
      - dependency-name: "your-dependency"  # Optional: Ignore specific dependencies
        versions: ["*-SNAPSHOT"]  # Ignore SNAPSHOT versions

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742407722a4438192.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信