spockframework / spockframework/spock

Spock's versioning confuses Dependabot

Open
#1,697 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
3.6k
Forks
483
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Due to the versioning scheme of Spock 2.x having the Groovy compatibility encoded in the version, Dependabot will always send updates to the groovy-4 variant.

To Reproduce
  1. Create a Gradle project with a dependency to org.spockframework:spock-core:2.1-groovy-3.0
  2. Enable Dependabot and chose gradle as the package-ecosystem
  3. Wait
  4. You will get a PR that tries to update to org.spockframework:spock-core:2.3-groovy-4.0 (or whatever the latest 2.x release is at that time)
Expected behavior

Spockframework should use the classifier portion of the GAV to indicate Groovy compatibility. That way Dependabot can distinguish between the two Groovy variants.

Actual behavior

Spockframework appends the variant information to the version number, which isn't recognized by Dependabot.

Java version

N/A

Buildtool version

N/A

What operating system are you using

Mac

Dependencies

org.spockframework:spock-core:2.1-groovy-3.0

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Spock 2.x publishes its spock-core dependency coordinates and how the Groovy variants are represented. Determine the release and dependency metadata that Dependabot reads, then verify that a Groovy 3 dependency remains on the Groovy 3 variant rather than being upgraded to Groovy 4.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
build-system
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.